首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Capistrano3部署错误(错误:无法构建gem本机扩展。)

Capistrano3部署错误(错误:无法构建gem本机扩展。)
EN

Stack Overflow用户
提问于 2014-04-23 15:36:18
回答 1查看 433关注 0票数 0

在使用capistrano3进行部署期间,在捆绑包安装过程中遇到以下错误

我的Gemfile.lock中有一个原子gem,其中包含它要求我安装的特定版本。

原子(1.1.16),并且已经在我的ec2机器上手动安装了。但在部署过程中,它会反复说出以下内容。

代码语言:javascript
复制
$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!
EN

回答 1

Stack Overflow用户

发布于 2014-08-02 21:29:33

尝尝这个。

https://github.com/classmethod-aws/ec2-swap

RPMEC2- swap :在EC2实例存储上创建和交换镜像ec2-swap是一个

包项目,用于在启动序列上的EC2实例存储上创建和交换交换镜像。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/23237836

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档