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.
帮我解决这个问题。我尝试了很多东西,但无法解决它。
答案 0 :(得分:0)
@ashwinkumar看起来你只是内存不足。你可以尝试再次这样做并检查你是否有任何空闲记忆?尝试添加交换内存请检查出来!! https://www.digitalocean.com/community/questions/bundler-cannot-allocate-enough-memory-on-ruby-on-rails-application-using-ubuntu-12-10