From: Jeff Peng Date: 2010-01-27T15:06:04+09:00 Subject: Re: How to connect to Mysql & Query for Database Tables > On Trying, " gem install mysql " , i get the following error: > > C:\Documents and Settings\user1\Desktop>gem install mysql > Building native extensions. This could take a while... > ERROR: Error installing mysql: > ERROR: Failed to build gem native extension. > > D:/Softwares/ruby/bin/ruby.exe extconf.rb > checking for main() in libmysql.lib... 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 mo > details. Well, you have to install mysql client before all the operation. There have to be: /usr/lib/libmysqlclient.a /usr/lib/libmysqlclient.so in my Linux OS. Jeff.