gpt4 book ai didi

ruby-on-rails - `bundle install` 在 EC2 实例上失败

转载 作者:行者123 更新时间:2023-12-04 07:32:33 25 4
gpt4 key购买 nike

在将存储库从 github 克隆到 EC2 实例后,我尝试运行 bundle install,但出现以下错误:

bundle install
Fetching source index from http://rubygems.org/
Fetching git://github.com/EvilFaeton/rubber.git
Unfortunately, a fatal error has occurred. Please see the Bundler
troubleshooting documentation at http://bit.ly/bundler-issues. Thanks!
/home/gbahrani/.rvm/gems/ruby-1.9.2-p320@global/gems/bundler-1.3.5/lib/bundler/source/git/git_proxy.rb:88:in ``': Cannot allocate memory - git clone 'git://github.com/EvilFaeton/rubber.git' "/home/gbahrani/.rvm/gems/ruby-1.9.2-p320@voylla/cache/bundler/git/rubber-505b2994ade5c531df4a62b99e99b8859d168b37" --bare --no-hardlinks (Errno::ENOMEM)
from /home/gbahrani/.rvm/gems/ruby-1.9.2-p320@global/gems/bundler-1.3.5/lib/bundler/source/git/git_proxy.rb:88:in `git'
from /home/gbahrani/.rvm/gems/ruby-1.9.2-p320@global/gems/bundler-1.3.5/lib/bundler/source/git/git_proxy.rb:49:in `checkout'
from /home/gbahrani/.rvm/gems/ruby-1.9.2-p320@global/gems/bundler-1.3.5/lib/bundler/source/git.rb:144:in `specs'
from /home/gbahrani/.rvm/gems/ruby-1.9.2-p320@global/gems/bundler-1.3.5/lib/bundler/lazy_specification.rb:52:in `__materialize__'
from /home/gbahrani/.rvm/gems/ruby-1.9.2-p320@global/gems/bundler-1.3.5/lib/bundler/spec_set.rb:88:in `block in materialize'
from /home/gbahrani/.rvm/gems/ruby-1.9.2-p320@global/gems/bundler-1.3.5/lib/bundler/spec_set.rb:85:in `map!'
from /home/gbahrani/.rvm/gems/ruby-1.9.2-p320@global/gems/bundler-1.3.5/lib/bundler/spec_set.rb:85:in `materialize'
from /home/gbahrani/.rvm/gems/ruby-1.9.2-p320@global/gems/bundler-1.3.5/lib/bundler/definition.rb:114:in `specs'
from /home/gbahrani/.rvm/gems/ruby-1.9.2-p320@global/gems/bundler-1.3.5/lib/bundler/definition.rb:109:in `resolve_remotely!'
from /home/gbahrani/.rvm/gems/ruby-1.9.2-p320@global/gems/bundler-1.3.5/lib/bundler/installer.rb:83:in `run'
from /home/gbahrani/.rvm/gems/ruby-1.9.2-p320@global/gems/bundler-1.3.5/lib/bundler/installer.rb:14:in `install'
from /home/gbahrani/.rvm/gems/ruby-1.9.2-p320@global/gems/bundler-1.3.5/lib/bundler/cli.rb:247:in `install'
from /home/gbahrani/.rvm/gems/ruby-1.9.2-p320@global/gems/bundler-1.3.5/lib/bundler/vendor/thor/task.rb:27:in `run'
from /home/gbahrani/.rvm/gems/ruby-1.9.2-p320@global/gems/bundler-1.3.5/lib/bundler/vendor/thor/invocation.rb:120:in `invoke_task'
from /home/gbahrani/.rvm/gems/ruby-1.9.2-p320@global/gems/bundler-1.3.5/lib/bundler/vendor/thor.rb:344:in `dispatch'
from /home/gbahrani/.rvm/gems/ruby-1.9.2-p320@global/gems/bundler-1.3.5/lib/bundler/vendor/thor/base.rb:434:in `start'
from /home/gbahrani/.rvm/gems/ruby-1.9.2-p320@global/gems/bundler-1.3.5/bin/bundle:20:in `block in <top (required)>'
from /home/gbahrani/.rvm/gems/ruby-1.9.2-p320@global/gems/bundler-1.3.5/lib/bundler/friendly_errors.rb:3:in `with_friendly_errors'
from /home/gbahrani/.rvm/gems/ruby-1.9.2-p320@global/gems/bundler-1.3.5/bin/bundle:20:in `<top (required)>'
from /home/gbahrani/.rvm/gems/ruby-1.9.2-p320@global/bin/bundle:19:in `load'
from /home/gbahrani/.rvm/gems/ruby-1.9.2-p320@global/bin/bundle:19:in `<main>'

有人可以告诉我为什么会出现此错误以及如何解决此问题吗?
谢谢

最佳答案

问题是实例内存不足。将实例类型从 t1.micro 更改为 m1.small 解决了问题。缺点是 m1.small 实例是收费的,与 t1.micro 不同。实例类型可以像提到的 here 一样改变。您可能还想检查 this

希望它可以帮助某人。

关于ruby-on-rails - `bundle install` 在 EC2 实例上失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19254191/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com