Issue while installing mysql gem

Hi All,

I am getting below issue while installing mysql gem on my windows
machine. Please help to resolve this issue.

C:\Documents and Settings\Raj>gem install mysql
Building native extensions. This could take a while…
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.

C:/Ruby19/bin/ruby.exe extconf.rb
checking for mysql_query() in -lmysqlclient… *** 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.

Provided configuration options:
C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:362:in try_do': The complier failed to generate an executable file. (RuntimeError) You have to install development tools first. from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:415:intry_link0’
from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:419:in try_link' from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:527:intry_func’
from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:748:in block in find_library' from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:668:inblock in checking_for’
from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:274:in block (2 levels) in postpone' from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:248:inopen’
from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:274:in block in postpone' from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:248:inopen’
from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:270:in postpone' from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:667:inchecking_for’
from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:744:in find_library' from extconf.rb:14:in

I have the same error, while I’m trying to make gem install rails…

can someone help please??


On Aug 19, 8:23 am, Rajeswar reddy Gaulla <rails-mailing-l…@andreas-