Skip navigation links

MySQL Forums :: Ruby :: Help needed with installing MySQL binding for Ruby


Advanced Search

Help needed with installing MySQL binding for Ruby
Posted by: Bob Ngu ()
Date: June 12, 2007 09:34PM

Hi,

I have tried to install the MySQL C-binding for Ruby on FC6 with Xen (x86_64) with no luck so far. I am getting this error

sudo gem install mysql
Need to update 8 gems from http://gems.rubyforge.org
........
complete
Select which gem to install for your platform (x86_64-linux)
1. mysql 2.7.3 (mswin32)
2. mysql 2.7.1 (mswin32)
3. mysql 2.7 (ruby)
4. mysql 2.6 (ruby)
5. Skip this gem
6. Cancel installation
> 3
Building native extensions. This could take a while...
ERROR: While executing gem ... (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.

ruby extconf.rb install mysql
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... yes
checking for mysql_query() in -lmysqlclient... no


Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/mysql-2.7 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/mysql-2.7/gem_make.out

It appears that it is searching for something in mysqlclient library, but I don't have that library installed, I only have libmysqlclient.a, so, etc. Can someone tell me why this is happening?

Options: ReplyQuote


Subject Written By Posted
Help needed with installing MySQL binding for Ruby Bob Ngu 06/12/2007 09:34PM
Re: Help needed with installing MySQL binding for Ruby Keith Rosema 10/03/2007 11:03AM
Re: Help needed with installing MySQL binding for Ruby Peter Battaglia 11/29/2007 10:29AM
Re: Help needed with installing MySQL binding for Ruby Alan Larkin 03/25/2008 01:46PM
Changing column to fields: Rabith K 11/08/2007 12:25AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.