Heroku命令行界面无法工作。

3

在我的办公室里,我成功安装了 Heroku CLI(Ubuntu 11.04)。现在,在我的笔记本电脑上安装它(Ubuntu 10.04)后,我遇到了以下错误:

$ 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
  • 使用sudo apt-get install ruby命令安装ruby
  • 安装git
  • 测试heroku CLI:$ heroku
有人可以帮我吗?
2个回答

3
您需要按照错误提示安装readline
apt-get install libreadline-dev

1
实际上,我通过执行“sudo apt-get install ruby-full”解决了这个问题。我猜“libreadline-dev”是该软件包的一个依赖项。谢谢! - César
也许是这个解决了它:libreadline-ruby。它在lucid中可用但在natty中不可用。 - César

1

这是实际对我起作用的:

sudo apt-get install libreadline-ruby1.9.1

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接