Today I tried to use Heroku on Ubuntu / RVM for a Rails 3 test app. I ran into a similar problem like I had yesterday with OpenSSL.
After installing the Heroku gem:
gem install herokuand running the command for create a new app
heroku create
I got this error
/home/siebel/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- readline (LoadError) from /home/siebel/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from /home/siebel/.rvm/gems/ruby-1.8.7-p249/gems/heroku-1.9.10/lib/heroku/commands/app.rb:1 from /home/siebel/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from /home/siebel/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from /home/siebel/.rvm/gems/ruby-1.8.7-p249/gems/heroku-1.9.10/lib/heroku/command.rb:5 from /home/siebel/.rvm/gems/ruby-1.8.7-p249/gems/heroku-1.9.10/lib/heroku/command.rb:5:in `each' from /home/siebel/.rvm/gems/ruby-1.8.7-p249/gems/heroku-1.9.10/lib/heroku/command.rb:5 from /home/siebel/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from /home/siebel/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from /home/siebel/.rvm/gems/ruby-1.8.7-p249/gems/heroku-1.9.10/bin/heroku:7 from /home/siebel/.rvm/gems/ruby-1.8.7-p249/bin/heroku:19:in `load' from /home/siebel/.rvm/gems/ruby-1.8.7-p249/bin/heroku:19
Now, the first line looks darn familiar and so does the solution:
First install libreadline-dev:
sudo apt-get install libreadline-dev
Then cd into
~/.rvm/src/ruby-1.8.7-p249/ext/readline
and build the extension:
ruby extconf.rb make make install
That’s it… heroku should run after that without problems.
I'm a Software Developer, currently working at
It’s very useful for me. Thanks!
Helped a lot! Much better than “rvm remove” then having to recompile with “rvm install”!
Thank you good man!
Thank you very much!!! very useful, especially the readline problem
Muchas Gracias!!!!!!
Pingback: Ruby On Rails… in the beginning
Pingback: RVM and Ubuntu | simmo.gs
Thanks a million – I found this after a couple of hours of vain searching, and it worked like a charm.
Merci beaucoup
Thanks a bunch! The solution worked like a charm on my PC too.
This is really a great blog!
Thx, it helps me :)
Thanks, exactly what I needed
Thank you!!!
Thanks! Solved my issue.
Thanx ….for resolving my problem and saving my time :)
+1
thanks so much!
Hi man,
thanks for your post
I found and really was useful for me
A lot of thanks
btw I am learning RoR
THANK YOU!!!!!!!!
Stefan,
thank you very much for your post. It found exactly the same problem with version 1.9.2 and your solution worked as clock
thanks buddy.
you save my life :)
It works!
Thanks a lot!
Thanks, this helped me out!