已解决:openvz容器没有分配足够的内存。
我可能需要一些帮助: 我想通过bundler安装curb gem。
我的配置(如果需要,请提供更多详细信息):
ruby 1.8.7 (2010-08-16 patchlevel 302) [x86_64-linux]
gem 1.8.6
Bundler version 1.0.15
Linux 2.6.32-5-openvz-amd64 #1 SMP x86_64 GNU/Linux
cat .bundle/config
---
BUNDLE_DISABLE_SHARED_GEMS: "1"
BUNDLE_PATH: vendor
正常安装有效:
gem install curb
Building native extensions. This could take a while...
Successfully installed curb-0.7.15
1 gem installed
但它不能通过bundler gem工作:
bundle install
Fetching source index for http://rubygems.org/
Using rake (0.8.7)
Using builder (2.1.2)
Using bundler (1.0.15)
....
Installing curb (0.7.8) with native extensions /usr/local/lib/site_ruby/1.8/rubygems/installer.rb:551:in `build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)
/usr/bin/ruby1.8 extconf.rb
Gem files will remain installed in /xxx/vendor/ruby/1.8/gems/curb-0.7.8 for inspection.
Results logged to /xxx/vendor/ruby/1.8/gems/curb-0.7.8/ext/gem_make.out
from /usr/local/lib/site_ruby/1.8/rubygems/installer.rb:504:in `each'
from /usr/local/lib/site_ruby/1.8/rubygems/installer.rb:504:in `build_extensions'
from /usr/local/lib/site_ruby/1.8/rubygems/installer.rb:180:in `install'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.15/lib/bundler/source.rb:101:in `install'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.15/lib/bundler/rubygems_integration.rb:78:in `preserve_paths'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.15/lib/bundler/source.rb:91:in `install'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.15/lib/bundler/installer.rb:58:in `run'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.15/lib/bundler/rubygems_integration.rb:93:in `with_build_args'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.15/lib/bundler/installer.rb:57:in `run'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.15/lib/bundler/spec_set.rb:12:in `each'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.15/lib/bundler/spec_set.rb:12:in `each'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.15/lib/bundler/installer.rb:49:in `run'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.15/lib/bundler/installer.rb:8:in `install'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.15/lib/bundler/cli.rb:222:in `install'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.15/lib/bundler/vendor/thor/task.rb:22:in `send'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.15/lib/bundler/vendor/thor/task.rb:22:in `run'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.15/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.15/lib/bundler/vendor/thor.rb:246:in `dispatch'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.15/lib/bundler/vendor/thor/base.rb:389:in `start'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.15/bin/bundle:13
from /usr/bin/bundle:19:in `load'
from /usr/bin/bundle:19
gem_make.out只包含一行:
cat /xxx/vendor/ruby/1.8/gems/curb-0.7.8/ext/gem_make.out
/usr/bin/ruby1.8 extconf.rb
运行extconf.rb manualy会在没有警告的情况下创建Makefile。 正在运行make,也没有显示任何警告。
如果你能帮我解决这个问题,或者在哪里寻找错误,我会很高兴。
由于