2012-01-19 72 views
3

回到我的辦公室我安裝了heroku CLI,沒有任何問題(Ubuntu 11.04)。現在,在我的筆記本電腦上安裝它(Ubuntu的10.04)後,我發現了以下錯誤:Heroku CLI不工作

$ heroku 
/usr/local/heroku/lib/heroku/command/run.rb:1:in `require': no such file to load -- readline (LoadError) 
    from /usr/local/heroku/lib/heroku/command/run.rb:1 
    from /usr/local/heroku/lib/heroku/command.rb:14:in `require' 
    from /usr/local/heroku/lib/heroku/command.rb:14:in `load' 
    from /usr/local/heroku/lib/heroku/command.rb:13:in `each' 
    from /usr/local/heroku/lib/heroku/command.rb:13:in `load' 
    from /usr/local/heroku/lib/heroku/cli.rb:8:in `start' 
    from /usr/bin/heroku:28 

在這兩種情況下,我遵循相同的過程:

  • 安裝heroku-toolbelt
  • 與安裝Ruby sudo apt-get install ruby
  • 安裝混帳
  • 測試Heroku的CLI:$ heroku

有人可以幫我嗎?

回答

3

您需要安裝readline作爲錯誤狀態。

apt-get install libreadline-dev 
+1

其實,我做'命令和apt-get安裝紅寶石full'解決它。我猜'libreadline-dev'是該軟件包的依賴項。謝謝! –

+1

它是:http://packages.ubuntu.com/hardy/ruby-full –

+0

也許這是解決它的:'libreadline-ruby'。它清晰可用,但不是納蒂 –

1

這究竟是什麼爲我工作:

sudo apt-get install libreadline-ruby1.9.1