unable to install mysql2 gem
I am trying to install mysql2 gem. I have got following error while installing
C:/Ruby192/bin/ruby.exe extconf.rb
checking for rb_thread_blocking_region()... yes
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
--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:/Ruby192/bin/ruby
--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-libmysqllib
--without-libmysqllib
I have install development kit and then tried this.
Please help me in solving this issue.
Thanks in advance,
Sateesh B.
Comments are currently closed for this discussion. You can start a new one.
Support Staff 2 Posted by Luis Lavena on 09 Jul, 2011 07:16 PM
Hello,
help.rubygems.org is not a support group about gem installation, even less on proper installation options of gems and it's errors. Is a support site to deal with specific issues of RubyGems website and service itself.
How to install mysql or mysql2 gem has been deal several times on this forum and over the web on stackoverflow and others.
I just published recently an article about mysql gem specifically:
http://blog.mmediasys.com/2011/07/07/installing-mysql-on-windows-7-...
Just change mysql with mysql2, but please note that certain mysql2 versions are specific for Rails 2 or Rails 3, please read the README of mysql2:
https://github.com/brianmario/mysql2
Luis Lavena closed this discussion on 09 Jul, 2011 07:16 PM.