Can't Run my server in rails after upgrading to ubuntu 12.04

mysql, ruby, ruby-on-rails

Solution

Go to your project and follow the steps,

rvm gemset empty <gemset name>
gem install bundler
bundle install

It will solve your problem.

If that does not work, or if you are not using rvm, please use

gem uninstall mysql2
bundle install

from one of your mysql2-using Rails project's directory.

Problem

I just upgraded ubuntu from 11.10 to 12.04 and after that when I run my server inside my rails project I got this error ``` $ rails s /usr/share/ruby-rvm/gems/ruby-1.9.3-p125/gems/mysql2-0.3.11/lib/mysql2.rb:9:in `require': libmysqlclient_r.so.16: cannot open shared object file: No such file or directory - /usr/share/ruby-rvm/gems/ruby-1.9.3-p125/gems/mysql2-0.3.11/lib/mysql2/mysql2.so (LoadError) ``` any help please?

Original source

Related problems