0
votes

while I am running my sever i am getting the below error in my console:----

C:/Ruby192/lib/ruby/gems/1.9.1/gems/mysql2-0.3.11-x86-mingw32/lib/mysql2.rb:9:in require': no such file to load -- mysql2/mysql2 (LoadError) from C:/Ruby192/lib/ruby/gems/1.9.1/gems/mysql2-0.3.11-x86-mingw32/lib/m ysql2.rb:9:in' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.1.5/lib/bundler/runti me.rb:68:in require' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.1.5/lib/bundler/runti me.rb:68:inblock (2 levels) in require' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.1.5/lib/bundler/runti me.rb:66:in each' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.1.5/lib/bundler/runti me.rb:66:inblock in require' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.1.5/lib/bundler/runti me.rb:55:in each' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.1.5/lib/bundler/runti me.rb:55:inrequire' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.1.5/lib/bundler.rb:11 9:in require' from D:/usr/barun/project/rails/forum web service/dummy/config/applicati on.rb:7:in' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.2.5/lib/rails/comman ds.rb:53:in require' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.2.5/lib/rails/comman ds.rb:53:inblock in ' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.2.5/lib/rails/comman ds.rb:50:in tap' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.2.5/lib/rails/comman ds.rb:50:in' from script/rails:6:in require' from script/rails:6:in'

How to solve this error i am not getting... Please help me out

1

1 Answers

0
votes

I had same problem. following solution worked for me

Solution: the libmysql.dll file is located in the bin directory of your mysql installation. This file needs to be a copy of it in the Ruby\bin directory.