ruby on rails - libmysqlclient_r.so.16: cannot open shared object file: No such file or directory DREAMHOST -
ruby on rails - libmysqlclient_r.so.16: cannot open shared object file: No such file or directory DREAMHOST -
i have ror app deployed on dreamhost. here versions running on
ruby: ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux] rails: rails 3.2.3the error when seek load home page 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 mysql2 gem, uninstalled , re-installed completed bundle install
success. have tried wget -o
, added file. error still persists. have tried search answers have not had much luck.
this production environment. feedback much appreciated.
your issue not related gems. libmysqlclient_r
complains mysql2.so
cannot found because it's missing on machine. need deal not using bundler
, rather scheme bundle manager (i.e. debian can utilize apt-get
or aptitude
).
first, locate absolute path of yout libmysqlclient_r.so:
dpkg -s libmysqlclient_r.so.16
now you've got absolute path, run:
ldd absolute_path_to_your_lib/libmysqlclient_r.so
ldd
lists dependencies of given library. there @ to the lowest degree 1 file missing. have install package(s) missing.
ruby-on-rails ruby rubygems mysql2 dreamhost
Comments
Post a Comment