iCoreTech Research Labs Just a placeholder

19Aug/090

CentOS “gem install mysql” problems, solution

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.

Be sure to have mysql and mysql-devel packages, and install the gem with

gem install mysql -- --with-mysql-include=/usr/include/mysql --with-mysql-lib=/usr/lib/mysql

Related posts:

  1. Install MySQL and MySQL Ruby gem on Snow Leopard, 64 bit
  2. Installing MySQL Ruby Gem in Snow Leopard Server
  3. Bowtie doesn’t scrobble to last.fm, solution

Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


No trackbacks yet.

Additional comments powered by BackType