Image not found -- rake db:migrate


#1

Hi.

I’m learning from the book ‘beginning ruby on rails e-commerce’, and i
just got to the point of running my first migration.

When I run rake db:migrate (as it says in the book), I see this:


(in /Users/me/dev/myapps/emporium/emporium)
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
Trace/BPT trap


PS: emporium is the name of the example app.

What can I do to solve this seemingly simple error?
I’m not familiar enough with mysql or ruby to dig around without
breaking something.

thanks in anticipation.

the dude