使用 ruby 2.2.2 安装 json 1.8.3 时出错
Error install json 1.8.3 with ruby 2.2.2
Installing json 1.8.3 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/usr/local/rvm/rubies/ruby-2.2.2/bin/ruby -r ./siteconf20150731-19716-1hmuzm4.rb extconf.rb
Cannot allocate memory - /usr/local/rvm/rubies/ruby-2.2.2/bin/ruby -r ./siteconf20150731-19716-1hmuzm4.rb extconf.rb 2>&1
Gem files will remain installed in /home/projects/myapp/releases/20150730121841/vendor/bundle/ruby/2.2.0/gems/json-1.8.3 for inspection.
Results logged to /home/projects/myapp/releases/20150730121841/vendor/bundle/ruby/2.2.0/extensions/x86_64-linux/2.2.0/json-1.8.3/gem_make.out
An error occurred while installing json (1.8.3), and Bundler cannot continue.
Make sure that `gem install json -v '1.8.3'` succeeds before bundling.
帮我解决这个问题。我已经尝试了很多东西,但无法修复它。
@ashwinkumar 看来你的记忆力不足了。你能再试一次并检查你是否有空闲内存吗?尝试添加交换内存,请检查一下!! https://www.digitalocean.com/community/questions/bundler-cannot-allocate-enough-memory-on-ruby-on-rails-application-using-ubuntu-12-10
Installing json 1.8.3 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/usr/local/rvm/rubies/ruby-2.2.2/bin/ruby -r ./siteconf20150731-19716-1hmuzm4.rb extconf.rb
Cannot allocate memory - /usr/local/rvm/rubies/ruby-2.2.2/bin/ruby -r ./siteconf20150731-19716-1hmuzm4.rb extconf.rb 2>&1
Gem files will remain installed in /home/projects/myapp/releases/20150730121841/vendor/bundle/ruby/2.2.0/gems/json-1.8.3 for inspection.
Results logged to /home/projects/myapp/releases/20150730121841/vendor/bundle/ruby/2.2.0/extensions/x86_64-linux/2.2.0/json-1.8.3/gem_make.out
An error occurred while installing json (1.8.3), and Bundler cannot continue.
Make sure that `gem install json -v '1.8.3'` succeeds before bundling.
帮我解决这个问题。我已经尝试了很多东西,但无法修复它。
@ashwinkumar 看来你的记忆力不足了。你能再试一次并检查你是否有空闲内存吗?尝试添加交换内存,请检查一下!! https://www.digitalocean.com/community/questions/bundler-cannot-allocate-enough-memory-on-ruby-on-rails-application-using-ubuntu-12-10