Anyone? On Jun 6, 4:28 pm, Ram <[email protected]> wrote: > Hi, > > Ive gotMacOS10.5.8 andMySQL5.0.67-osx10.5-x86 (installed in /usr/ > local/mysql) working fine with my Rails 2.1.0 applications. > > Im trying a test run of Rails 2.3.5 and having to install theMySQLgemis > literally driving me crazy! Ive tried all the following > commands, with sudo and without and I'm getting the same error for all > of them, ie. > > ERROR: Error installingmysql: > ERROR: Failed to buildgemnative extension. > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby > extconf.rb > checking for mysql_query() in -lmysqlclient... no > checking for main() in -lm... yes > checking for mysql_query() in -lmysqlclient... no > checking for main() in -lz... yes > checking for mysql_query() in -lmysqlclient... no > checking for main() in -lsocket... no > checking for mysql_query() in -lmysqlclient... no > checking for main() in -lnsl... no > checking for mysql_query() in -lmysqlclient... no > checking for main() in -lmygcc... no > checking for mysql_query() in -lmysqlclient... no > *** extconf.rb failed *** > Could not create Makefile due to some reason, probably lack of > necessary libraries and/or headers. Check the mkmf.log file for more > details. You may need configuration options. > > The commands I've tried after much Googling and blog posts are, > > env ARCHFLAGS="-arch i386"geminstallmysql-- --with-mysql-config=/ > usr/local/mysql/bin/mysql_config > env ARCHFLAGS="-arch i386"geminstallmysql-- --with-mysql-dir=/usr/ > local/mysql--with-mysql-lib=/usr/local/mysql/lib --with-mysql- > include=/usr/local/mysql/include > env ARCHFLAGS="-arch i386"geminstallmysql-- --with-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 > env ARCHFLAGS="-arch i386"geminstallmysql--with-mysql-dir=/usr/ > local/mysqlgeminstallmysql-- > --with-mysql-dir=/usr/local/mysqlgeminstallmysql-- > --with-mysql-config=/usr/local/mysql/bin/ > mysql_config > > As advised by thegeminstall o/p, I checked the mkmf.log file in / > Users/<user>/.gem/ruby/1.8/gems/mysql-2.8.1/ext/mysql_api/mkmf.log and > found this - "ld: library not found for -lmysqlclient" . > > Hope someone can help me fix this. Quite frustrating! > > Danke!
-- 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.

