2010-10-25 111 views
6

我是一個遵循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/ 

任何想法?提前感激。

回答

0

herkou文檔很棒。這些是你想要的說明heroku docs

+0

我已經去過他們的文檔 - 沒有運氣。 SSH Keys文檔與github相同,因爲我可以成功推送到github,所以我認爲這不是問題所在。 – John 2010-10-25 18:24:07

+0

ooops ...點擊輸入太快。在鍵上的文檔後,他們去「heroku創建」和「heroku鍵:添加」這是我的環境掏出的地方。無法找到任何相關的疑難解答。 – John 2010-10-25 18:25:02

4

嘿..我用rvm,ruby 1.9.2和sqlite3完成了安裝過程。您在最後一步:) :)放棄

好吧,我的解決方案。這爲我工作後摔跤2天的Heroku :)

sudo apt-get install libreadline-dev 

cd ~/.rvm/src/ruby-1.8.7-p249/ext/readline 

,然後建立擴展

ruby extconf.rb && make && make install 
2

感謝Prozac! 我已經做了在Ubuntu 11.10 RVM的多用戶安裝下面的工作對我來說,使用Ruby 1.9.2:

sudo apt-get install libreadline-dev 

cd /usr/local/rvm/src/ruby-1.9.2-p290/ext/readline/ 

ruby extconf.rb && make && make install 
0

升級紅寶石-1.9.2-P180紅寶石-1.9.2- p290爲我做的

相關問題