ubuntu ruby mysql gem installation problem
Problem:
/usr/bin/ruby1.8 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.
Solution:
apt-get install libmysql++-dev
After installing ruby 1.9.1 and rails 2.3.4 I had a rake problem: [ uninitialized constant MysqlCompat::MysqlRes ]
This solution solved my problem.
Thanks for posting it!