【发布时间】:2015-09-08 14:07:18
【问题描述】:
我在Ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux](安装了rvm 1.25.33)和bundler 1.10.6中运行bundle install
当它尝试安装 json 1.8.3 时,我得到以下信息:
Installing json 1.8.3 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/home/andrew/.rvm/rubies/ruby-2.2.1/bin/ruby -r ./siteconf20150905-31357-cgs3dn.rb extconf.rb
creating Makefile
make "DESTDIR=" clean
make "DESTDIR="
compiling generator.c
linking shared-object json/ext/generator.so
make "DESTDIR=" install
./install -m 0755 generator.so ./.gem.20150905-31357-199esvy/json/ext
make: ./install: Command not found
make: *** [install-so] Error 127
make install failed, exit code 2
在同一主机上,我可以在 ruby 2.1.3 中安装 json 1.8.3。
在another SO question 中,我看到了确保install 可用的建议。当我执行install --help 时,我得到了有效的输出。
我该怎么办?为什么 gem 可以安装在 2.1.3 而不是 2.2.1?
【问题讨论】:
-
不确定是否相关,所以我将其添加为评论:有问题的主机是 DigitalOcean VPS