MySQL rake db:migrate gives me dyld: lazy symbol binding failed: Symbol not found: _mysql_init

Hi

When I do a “rake db:migrate”, I get the following error:


(in /Users/sneigaard/work/rails/mailtimer)
dyld: lazy symbol binding failed: Symbol not found: _mysql_init
Referenced from: /Library/Ruby/Gems/1.8/gems/mysql-2.8.1/lib/
mysql_api.bundle
Expected in: flat namespace

dyld: Symbol not found: _mysql_init
Referenced from: /Library/Ruby/Gems/1.8/gems/mysql-2.8.1/lib/
mysql_api.bundle
Expected in: flat namespace

Trace/BPT trap

If I log in to mysql and do a show variables like “%version%”;, I get
his:


protocol_version = 10
version = 5.1.32
version_comment = Source distribution
version_compile_machine = i386
version_compile_os = apple-darwin9.6.0

I am runing OS X 10.6.4 64 bit

Any ideas what is wrong?

Thank you
Søren