【问题标题】:Error install json 1.8.3 with ruby 2.2.2使用 ruby​​ 2.2.2 安装 json 1.8.3 时出错
【发布时间】:2015-07-31 07:18:51
【问题描述】:
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.

帮我解决这个问题。我尝试了很多东西,但无法解决它。

【问题讨论】:

标签: ruby-on-rails ruby json rubygems


【解决方案1】:

@ashwinkumar 看起来你只是内存不足。您可以再试一次并检查您是否有任何可用内存吗?尝试添加交换内存请检查一下!! https://www.digitalocean.com/community/questions/bundler-cannot-allocate-enough-memory-on-ruby-on-rails-application-using-ubuntu-12-10

【讨论】:

    猜你喜欢
    • 2015-07-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-01-24
    • 2013-09-27
    • 2017-10-10
    相关资源
    最近更新 更多