Archive

Archive for April, 2015

Rails + Mysql OSX

April 9, 2015 Leave a comment

Today when running rails application using agains MySQL Database, got the following error :

sc1

The strange thing is mysql already installed on my machine :

1. mysql 2015-04-09 16-11-47

Seems rails cannot locate libmysqlclient.18.dylib which is located inĀ /usr/local/mysql/lib/libmysqlclient.18.dylib

because by default rails locate that file in /usr/lib folder.

Simple solution for this problem is creating symlink from /usr/local/mysql/lib to /usr/lib.

2. bash 2015-04-09 16-15-21

Update for ElCapiten:

if throw Operation Not permitted, change target folder from /usr/lib to /usr/local/lib

and now rails can start perfectly ..

 

Jakarta , 9 April 2015

 

 

A. Ahmad Kusumah

Advertisements