Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Heroku CLI not working

Tags:

heroku

ubuntu

Back in my office I installed heroku CLI without trouble (Ubuntu 11.04). Now, after installing it in my laptop (Ubuntu 10.04) I'm getting the following error:

$ 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

In both cases I followed the same procedure:

  • Install heroku-toolbelt
  • Install ruby with sudo apt-get install ruby
  • Install git
  • Test heroku CLI: $ heroku

Can anybody help me with this?

like image 797
César Avatar asked Aug 15 '26 20:08

César


2 Answers

You need to install readline as the error states.

apt-get install libreadline-dev
like image 74
Neil Middleton Avatar answered Aug 19 '26 18:08

Neil Middleton


This is what actually worked for me:

sudo apt-get install libreadline-ruby1.9.1
like image 33
Michael Avatar answered Aug 19 '26 19:08

Michael



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!