我是一個遵循RailsTutorial.org程序的新手,已經安裝/設置了rvm,ruby 1.9.2,rails,curl,git並創建了我的第一個應用程序並將它推送到github(所以SSH密鑰很好)。如何讓Heroku在Ubuntu 10.10上工作(在Windows機器上使用VirtualBox)?
下一步是部署到Heroku的,這是我的命:
gem install Heroku
工作正常,但之後我得到這個錯誤 「的Heroku鍵:添加」 或 「Heroku的創建」:
[app_first (master)]$ heroku keys:add
<internal:lib/rubygems/custom_require>:29:in `require': no such file to load -- readline (LoadError)
from <internal:lib/rubygems/custom_require>:29:in `require'
from /home/john/.rvm/gems/[email protected]/gems/heroku-1.11.0/lib/heroku/commands/app.rb:1:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from /home/john/.rvm/gems/[email protected]/gems/heroku-1.11.0/lib/heroku/command.rb:5:in `block in <top (required)>'
from /home/john/.rvm/gems/[email protected]/gems/heroku-1.11.0/lib/heroku/command.rb:5:in `each'
from /home/john/.rvm/gems/[email protected]/gems/heroku-1.11.0/lib/heroku/command.rb:5:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from /home/john/.rvm/gems/[email protected]/gems/heroku-1.11.0/bin/heroku:7:in `<top (required)>'
from /home/john/.rvm/gems/[email protected]/bin/heroku:19:in `load'
from /home/john/.rvm/gems/[email protected]/bin/heroku:19:in `<main>
我的猜測是這是關於失蹤或錯位的寶石,但我是一個總菜鳥,所以猜測可能會失敗。這裏是寶石的環境:
[app_first (master)]$ gem environment
RubyGems Environment:
- RUBYGEMS VERSION: 1.3.7
- RUBY VERSION: 1.9.2 (2010-08-18 patchlevel 0) [i686-linux]
- INSTALLATION DIRECTORY: /home/john/.rvm/gems/[email protected]
- RUBY EXECUTABLE: /home/john/.rvm/rubies/ruby-1.9.2-p0/bin/ruby
- EXECUTABLE DIRECTORY: /home/john/.rvm/gems/[email protected]/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86-linux
- GEM PATHS:
- /home/john/.rvm/gems/[email protected]
- /home/john/.rvm/gems/[email protected]
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- http://rubygems.org/
任何想法?提前感激。
我已經去過他們的文檔 - 沒有運氣。 SSH Keys文檔與github相同,因爲我可以成功推送到github,所以我認爲這不是問題所在。 – John 2010-10-25 18:24:07
ooops ...點擊輸入太快。在鍵上的文檔後,他們去「heroku創建」和「heroku鍵:添加」這是我的環境掏出的地方。無法找到任何相關的疑難解答。 – John 2010-10-25 18:25:02