Can't run install MySQL gem Fedora 14, even after installing mysql-devel, ruby-devel, and rubygems
Posted
by
jonderry
on Stack Overflow
See other posts from Stack Overflow
or by jonderry
Published on 2011-03-10T00:09:24Z
Indexed on
2011/03/10
0:10 UTC
Read the original article
Hit count: 253
I'm trying to install the mysql gem via
sudo gem install mysql --version 2.7
However, I get the following error:
Building native extensions. This could take a while...
...........
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.
/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... 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.
Any ideas?
© Stack Overflow or respective owner