I’ve seen this problem posted in other blogs and stackoverflow threads, but no one seems to have the answer. I’m trying to run heroku and getting this error:
/usr/local/heroku/vendor/gems/rest-client-1.6.1/lib/restclient.rb:9:in `rescue in <top (required)>': no such file to load -- net/https. Try running apt-get install libopenssl-ruby (LoadError)
from /usr/local/heroku/vendor/gems/rest-client-1.6.1/lib/restclient.rb:5:in `<top (required)>'
from /usr/local/heroku/vendor/gems/rest-client-1.6.1/lib/rest_client.rb:2:in `require'
from /usr/local/heroku/vendor/gems/rest-client-1.6.1/lib/rest_client.rb:2:in `<top (required)>'
from /usr/local/heroku/lib/heroku/client.rb:2:in `require'
from /usr/local/heroku/lib/heroku/client.rb:2:in `<top (required)>'
from /usr/local/heroku/lib/heroku.rb:3:in `require'
from /usr/local/heroku/lib/heroku.rb:3:in `<top (required)>'
from /usr/local/heroku/lib/heroku/cli.rb:1:in `require'
from /usr/local/heroku/lib/heroku/cli.rb:1:in `<top (required)>'
from /usr/bin/heroku:29:in `require'
from /usr/bin/heroku:29:in `<main>'
Problem is that libopenssl-ruby is already the newest version.
Has anyone else come across this problem?
I Just had similar problem on my ubuntu 10.04, fixed it this way :
EDIT:
Quicker fix:
check /usr/local/heroku/bin/heroku what version of ruby it is using
I had:
Then install the right lib:
Old:
Install rvm: http://beginrescueend.com/rvm/install/
To ~/.bashrc add:
run:
Then:
after running last command i had this output, note the ruby-1.9.2-p290:
then edit /usr/local/heroku/bin/heroku
In first line change:
To:
you might need to install some missing libs for all of this to work, this will help to find what
I hope this helps.