ruby - rails cannot load such file -- mysql2/mysql2 (LoadError) -


i newbie ruby on rails not find solution error:

rails s 

/usr/local/share/gems/gems/mysql2-0.3.13/lib/mysql2.rb:8:in `require': cannot load such file -- mysql2/mysql2 (loaderror) /usr/local/share/gems/gems/mysql2-0.3.13/lib/mysql2.rb:8:in `<top (required)>' /usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `require' /usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `block (2 levels) in require' /usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `each' /usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `block in require' /usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `each' /usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `require' /usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:132:in `require' /home/harish/documents/simple_cms/config/application.rb:7:in `<top (required)>' /usr/local/share/gems/gems/railties-4.0.0/lib/rails/commands.rb:76:in `require' /usr/local/share/gems/gems/railties-4.0.0/lib/rails/commands.rb:76:in `block in <top (required)>' /usr/local/share/gems/gems/railties-4.0.0/lib/rails/commands.rb:73:in `tap' /usr/local/share/gems/gems/railties-4.0.0/lib/rails/commands.rb:73:in `<top (required)>' bin/rails:4:in `require' bin/rails:4:in `<main>' 

gem uninstall mysql2  gem install mysql2 --platform=ruby 

delete mysql2 gem directory in rails specific bundle directory , copy paste newly install mysql2 gem


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -