Posts Tagged ‘heroku’

Heroku on Ubuntu 10.04 (Lucid)

February 10, 2012

I was setting up my laptop for development and production on Heroku. I followed the guide for ubuntu linux and ran the installer, but when I tried

heroku login

I got this error

/usr/local/heroku/vendor/gems/rest-client-1.6.1/lib/restclient.rb:9:in `rescue in ': 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 `'
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 `'
from /usr/local/heroku/lib/heroku/client.rb:2:in `require'
from /usr/local/heroku/lib/heroku/client.rb:2:in `'
from /usr/local/heroku/lib/heroku.rb:3:in `require'
from /usr/local/heroku/lib/heroku.rb:3:in `'
from /usr/local/heroku/lib/heroku/cli.rb:1:in `require'
from /usr/local/heroku/lib/heroku/cli.rb:1:in `'
from /usr/bin/heroku:29:in `require'
from /usr/bin/heroku:29:in `'

Installing libopenssl-ruby didn’t help. It turns out that the heroku binary depends on ruby 1.9.1. The default ruby on Lucid is 1.8. So I did

apt-get install libopenssl-ruby1.9.1

Running heroku login again got this error

/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:in `'
from /usr/local/heroku/lib/heroku/command.rb:14:in `require'
from /usr/local/heroku/lib/heroku/command.rb:14:in `block 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:30:in `'

I installed libreadline to resolve it.

apt-get install libreadline-ruby1.9.1

Now all the heroku getting started steps work.

Thanks to this post for giving me some insight.