2012-01-19 71 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