在使用capistrano3进行部署期间,在捆绑包安装过程中遇到以下错误
我的Gemfile.lock中有一个原子gem,其中包含它要求我安装的特定版本。
原子(1.1.16),并且已经在我的ec2机器上手动安装了。但在部署过程中,它会反复说出以下内容。
$cap development deploy
INFO [44c32ab1] Running ~/.rvm/bin/rvm default do bundle install --binstubs /home/ec2-user/apps/dev/shared/bin --path /home/ec2-user/apps/dev/shared/bundle --without development test --deployment --quiet on 54.201.16.12
DEBUG [44c32ab1] Command: cd /home/ec2-user/apps/dev/releases/20140423071010 && ~/.rvm/bin/rvm default do bundle install --binstubs /home/ec2-user/apps/dev/shared/bin --path /home/ec2-user/apps/ybench_dev/shared/bundle --without development test --deployment --quiet
DEBUG [44c32ab1] Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
DEBUG [44c32ab1]
DEBUG [44c32ab1] /home/ec2-user/.rvm/rubies/ruby-2.1.0/bin/ruby extconf.rb
DEBUG [44c32ab1] Cannot allocate memory - /home/ec2-user/.rvm/rubies/ruby-2.1.0/bin/ruby extconf.rb 2>&1
DEBUG [44c32ab1]
DEBUG [44c32ab1] Gem files will remain installed in /home/ec2-user/apps/dev/shared/bundle/ruby/2.1.0/gems/atomic-1.1.16 for inspection.
DEBUG [44c32ab1] Results logged to /home/ec2-user/apps/dev/shared/bundle/ruby/2.1.0/extensions/x86_64-linux/2.1.0/atomic-1.1.16/gem_make.out
DEBUG [44c32ab1] An error occurred while installing atomic (1.1.16), and Bundler cannot continue.
DEBUG [44c32ab1] Make sure that `gem install atomic -v '1.1.16'` succeeds before bundling.
cap aborted!发布于 2014-08-02 21:29:33
尝尝这个。
https://github.com/classmethod-aws/ec2-swap
RPMEC2- swap :在EC2实例存储上创建和交换镜像ec2-swap是一个
包项目,用于在启动序列上的EC2实例存储上创建和交换交换镜像。
https://stackoverflow.com/questions/23237836
复制相似问题