I just updated to Rails 2.2.2 from 1.2.6 yesterday. Today I
reinstalled the mysql gem. Now when I try to run script/server the
server starts, but when I try to access my database in a browser
window get the following error:
dyld: lazy symbol binding failed: Symbol not found: _mysql_init
Referenced from: /Library/Ruby/Gems/1.8/gems/mysql-2.7/lib/
mysql.bundle
Expected in: dynamic lookup
dyld: Symbol not found: _mysql_init
Referenced from: /Library/Ruby/Gems/1.8/gems/mysql-2.7/lib/
mysql.bundle
Expected in: dynamic lookup
I'm getting the error after installing the mysql gem for rails 2.2.2 to
work, where all MySQL worked fine prior to this upgrade. Would this be
your suggestion even though MySQL was working prior to the mysql gem
installation?
First off I apologize for my language but I'm sure you can understand
how frustrated I was.
@Rick
I tried data recovery tools but they couldn't find anything; all my
files were completely gone. I had to reinstall leopard but thanks for
the advice anyway.
And the moral, which we all learn the hard way at least once in our
careers, is always have a backup. If there is a problem with the
backup system so backup is not possible then fixing that is more
important than continuing development.
Also check that the backup is actually working correctly by
occasionally doing a restore, in particular after any changes to the
backup system.
Little consolation now I know. Most of us have been there, those that
have not probably will at some point.
I just updated to Rails 2.2.2 from 1.2.6 yesterday. Today I
reinstalled the mysql gem. Now when I try to run script/server the
server starts, but when I try to access my database in a browser
window get the following error:
dyld: lazy symbol binding failed: Symbol not found: _mysql_init
Referenced from: /Library/Ruby/Gems/1.8/gems/mysql-2.7/lib/
mysql.bundle
Expected in: dynamic lookup
dyld: Symbol not found: _mysql_init
Referenced from: /Library/Ruby/Gems/1.8/gems/mysql-2.7/lib/
mysql.bundle
Expected in: dynamic lookup
Trace/BPT trap
Any suggestions would be most appreciated.
Thanks!
Please don't use this article, you will lose your data / files.
I uses this article on my mac and have lost everything.