Here's a tip that I received from reader Jessica Millar (Thanks, Jessica):

With an empty database and nothing in db/migrate:
> rake db:migrate
returned
dyld: NSLinkModule() error
dyld: Library not loaded: /usr/local/mysql/lib/mysql/libmysqlclient.15.dylib
Referenced from: /usr/local/lib/ruby/gems/
1.8/gems/mysql-2.7/lib/mysql.bundle Reason: image not found

***
At the end of the article http://hivelogic.com/articles/ruby-rails-mongrel-mysql-osx/ there is a comment about needing to change names:

“There’s an issue with the current version of MySQL and the latest Ruby. Fortunately, this is easily fixed with the following command in Terminal:

sudo install_name_tool -change /usr/local/mysql/lib/mysql/libmysqlclient.15.dylib /usr/local/mysql/lib/libmysqlclient. 15.dylib /usr/local/lib/ruby/gems/1.8/gems/mysql-2.7/lib/mysql.bundle

I did this and was able to rake.



Your Option (Login or Post by anonymous)