【发布时间】:2016-07-27 05:35:29
【问题描述】:
我的远程服务器上发生了这个错误。
虽然这在我的本地环境中是不可复制的。
使用原生扩展安装 unf_ext 0.0.7.2
Gem::Ext::BuildError: ERROR: 未能构建 gem 原生扩展。
/home/ubuntu/.rbenv/versions/2.1.2/bin/ruby extconf.rb
无法分配内存 - /home/ubuntu/.rbenv/versions/2.1.2/bin/ruby extconf.rb 2>&1
Gem files will remain installed in /home/ubuntu/switch-web/shared/bundle/ruby/2.1.0/gems/unf_ext-0.0.7.2 for inspection.
Results logged to /home/ubuntu/switch-web/shared/bundle/ruby/2.1.0/extensions/x86_64-linux/2.1.0-static/unf_ext-0.0.7.2/gem_make.out
An error occurred while installing unf_ext (0.0.7.2), and Bundler cannot
continue.
Make sure that `gem install unf_ext -v '0.0.7.2'` succeeds before bundling.
我检查了我的服务器的内存空间,它仍然相当不错(2GB 免费)。
【问题讨论】:
标签: ruby-on-rails ruby bundler