Error While Installing MYSQL Gems in Ruby -
i need big while facing past 3 months.
i using windows 8
machine.
i trying install ruby
in rails
.everything got success.
but while installing mysql
gem can face many errors have copied , pasted below
c:\users\mounarajan p a>gem install mysql temporarily enhancing path include devkit... building native extensions. take while... error: error installing mysql: error: failed build gem native extension. c:/ruby200-x64/bin/ruby.exe extconf.rb checking main() in -llibmysql... no *** extconf.rb failed *** not create makefile due reason, lack of necessary libraries and/or headers. check mkmf.log file more details. 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:/ruby200-x64/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}/ --with-libmysqllib --without-libmysqllib gem files remain installed in c:/ruby200-x64/lib/ruby/gems/2.0.0/gems/mysql -2.9.1 inspection. results logged c:/ruby200-x64/lib/ruby/gems/2.0.0/gems/mysql-2.9.1/ext/mysql_ api/gem_make.out
actually should have native development libraries when installing native extensions. ubuntu libmysql2-dev, same way find dev lib windows , install it. solve problem
Comments
Post a Comment