2013-10-08 88 views
4

我試圖運行bundle install後,我克隆從GitHub存儲庫,以我的EC2實例,但我發現了以下錯誤:`束install`在EC2實例失敗

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/[email protected]/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/[email protected]/cache/bundler/git/rubber-505b2994ade5c531df4a62b99e99b8859d168b37" --bare --no-hardlinks (Errno::ENOMEM) 
from /home/gbahrani/.rvm/gems/[email protected]/gems/bundler-1.3.5/lib/bundler/source/git/git_proxy.rb:88:in `git' 
from /home/gbahrani/.rvm/gems/[email protected]/gems/bundler-1.3.5/lib/bundler/source/git/git_proxy.rb:49:in `checkout' 
from /home/gbahrani/.rvm/gems/[email protected]/gems/bundler-1.3.5/lib/bundler/source/git.rb:144:in `specs' 
from /home/gbahrani/.rvm/gems/[email protected]/gems/bundler-1.3.5/lib/bundler/lazy_specification.rb:52:in `__materialize__' 
from /home/gbahrani/.rvm/gems/[email protected]/gems/bundler-1.3.5/lib/bundler/spec_set.rb:88:in `block in materialize' 
from /home/gbahrani/.rvm/gems/[email protected]/gems/bundler-1.3.5/lib/bundler/spec_set.rb:85:in `map!' 
from /home/gbahrani/.rvm/gems/[email protected]/gems/bundler-1.3.5/lib/bundler/spec_set.rb:85:in `materialize' 
from /home/gbahrani/.rvm/gems/[email protected]/gems/bundler-1.3.5/lib/bundler/definition.rb:114:in `specs' 
from /home/gbahrani/.rvm/gems/[email protected]/gems/bundler-1.3.5/lib/bundler/definition.rb:109:in `resolve_remotely!' 
from /home/gbahrani/.rvm/gems/[email protected]/gems/bundler-1.3.5/lib/bundler/installer.rb:83:in `run' 
from /home/gbahrani/.rvm/gems/[email protected]/gems/bundler-1.3.5/lib/bundler/installer.rb:14:in `install' 
from /home/gbahrani/.rvm/gems/[email protected]/gems/bundler-1.3.5/lib/bundler/cli.rb:247:in `install' 
from /home/gbahrani/.rvm/gems/[email protected]/gems/bundler-1.3.5/lib/bundler/vendor/thor/task.rb:27:in `run' 
from /home/gbahrani/.rvm/gems/[email protected]/gems/bundler-1.3.5/lib/bundler/vendor/thor/invocation.rb:120:in `invoke_task' 
from /home/gbahrani/.rvm/gems/[email protected]/gems/bundler-1.3.5/lib/bundler/vendor/thor.rb:344:in `dispatch' 
from /home/gbahrani/.rvm/gems/[email protected]/gems/bundler-1.3.5/lib/bundler/vendor/thor/base.rb:434:in `start' 
from /home/gbahrani/.rvm/gems/[email protected]/gems/bundler-1.3.5/bin/bundle:20:in `block in <top (required)>' 
from /home/gbahrani/.rvm/gems/[email protected]/gems/bundler-1.3.5/lib/bundler/friendly_errors.rb:3:in `with_friendly_errors' 
from /home/gbahrani/.rvm/gems/[email protected]/gems/bundler-1.3.5/bin/bundle:20:in `<top (required)>' 
from /home/gbahrani/.rvm/gems/[email protected]/bin/bundle:19:in `load' 
from /home/gbahrani/.rvm/gems/[email protected]/bin/bundle:19:in `<main>' 

可能有人請告訴我爲什麼我得到這個錯誤,以及我如何解決這個問題? 謝謝

回答

7

問題是實例的內存不足。將實例類型從t1.micro更改爲m1.small可以解決問題。缺點是m1.small實例是收費的,與t1.micro不同。實例類型可以按照提及的here進行更改。您可能還想檢查this

希望它有助於某人。