我使用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
时,它会失败并显示相同的错误消息。
之前我遇到过这个问题,我尝试了一些方法,但它确实有效。但是现在我忘了我做了什么让它发挥作用......
答案 0 :(得分:0)
我解决了这个问题。
我刚转到/home/deployer/apps/get-real/shared/bundle/ruby/1.9.1/gems/
并运行gem install raindrops -v '0.10.0'