rails s /usr/local/share/gems/gems/mysql2-0.3.13/lib/mysql2.rb:8:in `require'': cannot load such file -- mysql2/mysql2 (LoadError) from /usr/local/share/gems/gems/mysql2-0.3.13/lib/mysql2.rb:8:in `<top (required)>'' from /usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `require'' from /usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `block (2 levels) in require'' from /usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `each'' from /usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `block in require'' from /usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `each'' from /usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `require'' from /usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:132:in `require'' from /home/Harish/Documents/simple_cms/config/application.rb:7:in `<top (required)>'' from /usr/local/share/gems/gems/railties-4.0.0/lib/rails/commands.rb:76:in `require'' from /usr/local/share/gems/gems/railties-4.0.0/lib/rails/commands.rb:76:in `block in <top (required)>'' from /usr/local/share/gems/gems/railties-4.0.0/lib/rails/commands.rb:73:in `tap'' from /usr/local/share/gems/gems/railties-4.0.0/lib/rails/commands.rb:73:in `<top (required)>'' from bin/rails:4:in `require'' from bin/rails:4:in `<main>'' -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/d1aa9d69-4ff6-4ee1-a161-217b1d71aaed%40googlegroups.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out.
Have you installed mysql libraries? -- Dheeraj Kumar On Friday 9 August 2013 at 9:17 PM, Harish Vishnu wrote:> rails s > /usr/local/share/gems/gems/mysql2-0.3.13/lib/mysql2.rb:8:in `require'': cannot load such file -- mysql2/mysql2 (LoadError) > from /usr/local/share/gems/gems/mysql2-0.3.13/lib/mysql2.rb:8:in `<top (required)>'' > from /usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `require'' > from /usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `block (2 levels) in require'' > from /usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `each'' > from /usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `block in require'' > from /usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `each'' > from /usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `require'' > from /usr/local/share/gems/gems/bundler-1.3.5/lib/bundler.rb:132:in `require'' > from /home/Harish/Documents/simple_cms/config/application.rb:7:in `<top (required)>'' > from /usr/local/share/gems/gems/railties-4.0.0/lib/rails/commands.rb:76:in `require'' > from /usr/local/share/gems/gems/railties-4.0.0/lib/rails/commands.rb:76:in `block in <top (required)>'' > from /usr/local/share/gems/gems/railties-4.0.0/lib/rails/commands.rb:73:in `tap'' > from /usr/local/share/gems/gems/railties-4.0.0/lib/rails/commands.rb:73:in `<top (required)>'' > from bin/rails:4:in `require'' > from bin/rails:4:in `<main>'' > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org (mailto:rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org). > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org (mailto:rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org). > To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/d1aa9d69-4ff6-4ee1-a161-217b1d71aaed%40googlegroups.com?hl=en-US. > For more options, visit https://groups.google.com/groups/opt_out. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/8285D405C36D45CFA5F51D89904FDBB9%40gmail.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out.
On 9 August 2013 16:47, Harish Vishnu <vishnuharish12-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> rails s > /usr/local/share/gems/gems/mysql2-0.3.13/lib/mysql2.rb:8:in `require'': > cannot load such file -- mysql2/mysql2 (LoadError)If you look in the lib folder mentioned above is there a subdirectory mysql2 containing mysql2.so? If not then I suspect your mysql2 gem has not installed correctly. Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLvvHpqJPoCbs1vrpzhvsh-%2BXfhJ21j%3Dy67OWoS7eJgvHA%40mail.gmail.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out.