【发布时间】:2013-12-24 20:06:08
【问题描述】:
我刚刚部署了一些新代码(视图中只有一些文本更新),在处理命令 cap deploy 时,我收到以下错误消息:
** [out :: IP] Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
** [out :: IP]
** [out :: IP] /usr/local/bin/ruby extconf.rb
** [out :: IP] creating Makefile
** [out :: IP]
** [out :: IP] make "DESTDIR="
** [out :: IP]
** [out :: IP] Gem files will remain installed in /home/deployer/fileto/shared/bundle/ruby/2.0.0/gems/json-1.8.1 for inspection.
** [out :: IP] Results logged to /home/deployer/appname/shared/bundle/ruby/2.0.0/gems/json-1.8.1/ext/json/ext/generator/gem_make.out
** [out :: IP] An error occurred while installing json (1.8.1), and Bundler cannot continue.
** [out :: IP] Make sure that `gem install json -v '1.8.1'` succeeds before bundling.
它今天才出现,我有 2 周时间没有使用该应用程序进行任何操作。我尝试将 json gem 添加到 Gemfile,但没有帮助 - 仍然是同样的错误。
有什么问题?
谢谢
【问题讨论】:
标签: ruby-on-rails ruby json amazon-ec2 bundle