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:
–with-opt-dir
–without-opt-dir
–with-opt-include
–without-opt-include=${opt-dir}/include
–with-opt-lib
–without-opt-lib=${opt-dir}/lib
–with-make-prog
–without-make-prog
–srcdir=.
–curdir
–ruby=C:/Ruby19/bin/ruby
–with-mysql-config
–without-mysql-config
–with-mysql-dir
–without-mysql-dir
–with-mysql-include
–without-mysql-include=${mysql-dir}/include
–with-mysql-lib
–without-mysql-lib=${mysql-dir}/lib
–with-mysqlclientlib
–without-mysqlclientlib
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??

Thanks!

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