SUPPORT THE SITE WITH A CLICK

Subscribe Rss:

SUPPORT THE SITE WITH A CLICK

Friday, December 26, 2008

ERROR: Error installing mysql: ERROR: Failed to build gem native extension

no such file to load --mysql


/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.

If this type of error occurs just check whether libmysqlclient was installed.if not then install via terminal sudo apt-get install libmysqlclient-dev
Note: libmysqlclient-dev will be differ different architecture for some machines it will accept libmysqlclient15-dev

3 comments :