【发布时间】:2013-01-24 14:57:15
【问题描述】:
我的 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
原始版本:
[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:inrequire'
** [out :: direct.soprojetos.com.br] /home/soprojetos/cap/releases/20130208183759/Rakefile:5
** [out :: direct.soprojetos.com.br](通过使用 --trace 运行任务查看完整跟踪)
命令在 9957 毫秒内完成
* [deploy:update_code] 回滚
* 执行“rm -rf /home/soprojetos/cap/releases/20130208183759; true”
服务器:[“direct.soprojetos.com.br”]
[direct.soprojetos.com.br] 执行命令
命令在 13266 毫秒内完成
* [pushover:notify_deploy_started] 回滚
失败:“env PATH=$PATH:/usr/lib/ruby/gems/1.8/bin/sh -c 'cd -- /home/soprojetos/cap/releases/20130208183759 && bundle exec rake RAILS_ENV=production RAILS_GROUPS=assets assets :precompile && cp -- /home/soprojetos/cap/shared/assets/manifest.yml /home/soprojetos/cap/releases/20130208183759/assets_manifest.yml'" on direct.soprojetos.com.br
`
谁能救我?
【问题讨论】:
-
这只是 Dreamhost 不是托管 Rails 应用程序的最佳位置的原因之一。如果可能,您应该尝试Heroku,因为他们的免费套餐与付费 Dreamhost 帐户提供的服务相当。
-
我在 Dreamhost 上的 Django 中遇到了同样的问题 ...
标签: mysql ruby-on-rails capistrano dreamhost