jabauer wrote: > 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!
probably its version of mysql not this correct one uninstall mysql following these steps: 1. Open Terminal 2. sudo nano /etc/hostconfig 3. Delete the following line: "MYSQLCOM=-YES-" 4. CTRL+x 5. y 6. CTRL+m 7. Make sure MySQL is not running 8. Open Terminal 9. sudo rm /usr/local/mysql 10. sudo rm -rf /usr/local/mysql * 11. sudo rm -rf /Library/StartupItems/MySQLCOM 12. sudo rm -rf /Library/PreferencePanes/My* 13. sudo rm -rf /Library/Receipts/mysql* 14. sudo rm -rf /Library/Receipts/MySQL* installs the correct version, probably x386 or 32bits: http://dev.mysql.com/downloads/mysql/5.1.html#downloads. Open Terminal sudo env ARCHFLAGS="-arch i386" gem install mysql -- --wuth-mysql-dir=/usr/local/mysql --with-mysql-lib=/usr/local/mysql/lib --with-mysql-include=/usr/local/mysql/include \ --with-mysql-config=/usr/local/mysql/bin/mysql_config -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

