我使用 capistrano 将我的 rails 应用程序部署到我的 vps。我有问题cap deploy update
。
错误信息是这样的:
** [out :: 1] Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
** [out :: 1]
** [out :: 1] /usr/bin/ruby1.9.1 extconf.rb
** [out :: 1]
** [out :: 1]
** [out :: 1] Gem files will remain installed in /home/deployer/apps/get-real/shared/bundle/ruby/1.9.1/gems/raindrops-0.10.0 for inspection.
** [out :: 1]
** [out :: 1] Results logged to /home/deployer/apps/get-real/shared/bundle/ruby/1.9.1/gems/raindrops-0.10.0/ext/raindrops/gem_make.out
** [out :: 1]
** [out :: 1] An error occurred while installing raindrops (0.10.0), and Bundler cannot continue.
** [out :: 1]
** [out :: 1] Make sure that `gem install raindrops -v '0.10.0'` succeeds before bundling.
我尝试gem install raindrops -v '0.10.0'
在我的服务器上运行推荐,它成功了。但是当我cap deploy:update
再次运行时,它会失败并显示相同的错误消息。
我之前遇到过这个问题,我尝试了一些方法,它奏效了。但现在我忘记了我做了什么让它工作......