I have a RoR app deployed on DREAMHOST. Here are the versions that am currently running on
- Ruby: ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
- Rails: Rails 3.2.3
The error when i try to load home page is as below:
libmysqlclient_r.so.16: cannot open shared object file: No such file or directory - /gems/ruby/1.8/gems/mysql2-0.3.13/lib/mysql2/mysql2.so (LoadError)
/gems/ruby/1.8/gems/mysql2-0.3.13/lib/mysql2/mysql2.so
/gems/ruby/1.8/gems/mysql2-0.3.13/lib/mysql2.rb:8
/usr/lib/ruby/vendor_ruby/bundler/runtime.rb:68:in `require'
/usr/lib/ruby/vendor_ruby/bundler/runtime.rb:68:in `require'
/usr/lib/ruby/vendor_ruby/bundler/runtime.rb:66:in `each'
/usr/lib/ruby/vendor_ruby/bundler/runtime.rb:66:in `require'
/usr/lib/ruby/vendor_ruby/bundler/runtime.rb:55:in `each'
/usr/lib/ruby/vendor_ruby/bundler/runtime.rb:55:in `require'
/usr/lib/ruby/vendor_ruby/bundler.rb:120:in `require'
/config/application.rb:7
/config/environment.rb:2:in `require'
/config/environment.rb:2
config.ru:3:in `require'
config.ru:3
I have tried updating the mysql2 gem, uninstalled and re-installed completed bundle install
which was a success. I have tried wget -O
and added the file. But the error still persists.
I have tried to search for answers but have not had much luck.
This is for production environment. Any feedback would be much appreciated.