Ruby: Rails gem install mysql throws error: extconf.rb failed

Published by

Posted on August 17, 2008

hecking 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.
===============soluton

gem install mysql — –with-mysql-config=/usr/local/mysql/bin/mysql_config