MySQL Forums
Forum List  »  Ruby

Installing Ruby MySQL gem from a remote server
Posted by: Conrad Chu
Date: February 26, 2009 08:30PM

Hi,

I have RoR on my server, and want to install the mysql gem:

sudo gem install mysql

I'm getting an error that a lot of ppl get saying it needs to know where the mysql config files:

Building native extensions. This could take a while...
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.

/usr/local/bin/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
*** 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.


My problem is that my database server is a different server than the one I'm on. The server I'm on doesn't have a database server on it. How do I gem install mysql without having to locally install a copy of mysql on it?

Thanks
Conrad

Options: ReplyQuote


Subject
Written By
Posted
Installing Ruby MySQL gem from a remote server
February 26, 2009 08:30PM


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.