I cannot cannot connec the mysql2 gem

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:inblock (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:inblock 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:inrequire’
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:inblock 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

Have you installed mysql libraries?


Dheeraj K.

On 9 August 2013 16:47, Harish V. [email protected] 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