Frederick Cheung wrote: > On 7 Jan 2009, at 22:06, jabauer <[email protected]> wrote: > >> dlsym(0x2727d10, Init_mysql): symbol not found - /usr/local/lib/ruby/ >> gems/1.8/gems/mysql-2.7/lib/mysql.bundle >> >> I don't know why it's looking for mysql in /usr/local/lib/ruby when I >> put it in /usr/local/mysql >> > It's not. It's saying that it couldn't find a function called > Init_mysql inside the gem. Have you checked whether that mysql.bundle > file is of the correct architecture? (which should match both your > machine and the mysql client libraries you have)
/usr/local/bin/ruby extconf.rb install mysql -- --with-mysql-dir=/usr/ local/mysql checking for mysql_query() in -lmysqlclient... no checking for main() in -lm... yes checking for mysql_query() in -lmysqlclient... no As per the error log its searching for the library lmysqlclient.but its not availbale.so first install the package libmysqlclient-dev.just check this blog http://genlinux.blogspot.com/2008/12/error-error-installing-mysql-error.html -- 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 -~----------~----~----~----~------~----~------~--~---

