Possible Duplicate:
Ruby gem mysql2 install error
There is mysql2 0.2.6 installed with rails 3.1.0, mysql 5.1.54 and win7. Need to update it to mysql2 0.3.7. However gem update mysql2 generated error as below. Copied libmysql.dll in to ruby/bin and it did not help.
$ gem update mysql2
Updating installed gems
Updating mysql2
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing mysql2:
ERROR: Failed to build gem native extension.
c:/Ruby192/bin/ruby.exe extconf.rb
checking for rb_thread_blocking_region()... yes
checking for rb_wait_for_single_fd()... no
checking for main() in -llibmysql... 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.
Provided configuration options:
--with-opt-dir
Any thoughts? Thanks.