我的rails应用程序运行良好,但最近Dreamhost移动了他们的服务器(*类似的东西),现在我无法通过capistrano部署。
我收到了一条错误消息:
libmysqlclient_r.so.15: cannot open shared object file: No such file or directory - /home/soprojetos/cap/shared/bundle/ruby/1.8/gems/mysql2-0.3.11/lib/mysql2/mysql2.so
原始版本:
执行"rm /home/soprojetos/cap/releases/20130208183759/Rakefile:5 /home/soprojetos/cap/[direct.soprojetos.com.br] executing command ** [out :: direct.soprojetos.com.br] /usr/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler.rb:199: warning: Insecure world writable dir /home/soprojetos/cap/shared/bundle/ruby/1.8/bin in PATH, mode 040777 ** [out :: direct.soprojetos.com.br] /home/soprojetos/cap/shared/bundle/ruby/1.8/bundler/gems/capistrano-ea5b03b4d38e/capistrano.gemspec:15: warning: Insecure world writable dir /home/soprojetos/cap/shared/bundle/ruby/1.8/bin in PATH, mode 040777 ** [out :: direct.soprojetos.com.br] /home/soprojetos/cap/shared/bundle/ruby/1.8/bundler/gems/kendoui_rails-dc276aceb446/kendoui-rails.gemspec:18: warning: Insecure world writable dir /home/soprojetos/cap/shared/bundle/ruby/1.8/bin in PATH, mode 040777 ** [out :: direct.soprojetos.com.br] /home/soprojetos/cap/shared/bundle/ruby/1.8/bundler/gems/pagseguro-fa2c22e88177/pagseguro.gemspec:15: warning: Insecure world writable dir /home/soprojetos/cap/shared/bundle/ruby/1.8/bin in PATH, mode 040777 ** [out :: direct.soprojetos.com.br] /usr/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/runtime.rb:132: warning: Insecure world writable dir /home/soprojetos/cap/shared/bundle/ruby/1.8/bin in PATH, mode 040777 ** [out :: direct.soprojetos.com.br] rake aborted! ** [out :: direct.soprojetos.com.br] libmysqlclient_r.so.15: cannot open shared object file: No such file or directory - /home/soprojetos/cap/shared/bundle/ruby/1.8/gems/mysql2-0.3.11/lib/mysql2/mysql2.so ** [out :: direct.soprojetos.com.br] /home/soprojetos/cap/shared/bundle/ruby/1.8/gems/mysql2-0.3.11/lib/mysql2/mysql2.so ** [out :: direct.soprojetos.com.br] /home/soprojetos/cap/shared/bundle/ruby/1.8/gems/mysql2-0.3.11/lib/mysql2.rb:9 ** [out :: direct.soprojetos.com.br] /home/soprojetos/cap/releases/20130208183759/config/application.rb:14 ** [out :: direct.soprojetos.com.br] /home/soprojetos/cap/releases/20130208183759/Rakefile:5:in/20130208183759“的direct.soprojetos.com.br * * deploy:update_code回滚命令;真“direct.soprojetos.com.br:”执行命令命令在13266ms * pushover:notify_deploy_started回滚失败:"env =$PATH:/usr/lib/ruby/gems/1.8/bin/ sh -c 'cd -/home/soprojetos/cap/pushover:notify_deploy_started/20130208183759& bundle exec rake RAILS_ENV=production RAILS_GROUPS=assets资产:预编译& cp home/soprojetos/cap/pushover:notify_deploy_started20130208183759/ direct.soprojetos.com.br上的资产明显“
有人能救我吗?
发布于 2018-03-19 09:07:54
我猜有一个操作系统升级,在某个时候,mysql相关的东西要么被删除,要么没有升级。
这在Ubuntu 16.04.4上起了作用:
gem uninstall mysql2
sudo apt-get install libmysqlclient-dev
gem install mysql2您可能需要重新启动apache或任何给您错误的服务。
注意如果你这么做了
gem uninstall mysql2
gem install mysql2您的系统应该告诉您需要安装什么才能安装mysql2 gem,在我的例子中,这就是上面的apt命令。
发布于 2013-02-08 20:08:20
尝试用mysql2宝石https://rubygems.org/gems/mysql2交换
https://stackoverflow.com/questions/14779417
复制相似问题