Topic: Heroku is not working in my terminal

Hello, I get the following error when I enter 'heroku' + any command:
/home/charlie/.rvm/gems/ruby-1.9.2-rc2@rails3/gems/rest-client-1.4.2/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 /home/charlie/.rvm/gems/ruby-1.9.2-rc2@rails3/gems/rest-client-1.4.2/lib/restclient.rb:5:in `<top (required)>'
    from /home/charlie/.rvm/gems/ruby-1.9.2-rc2@rails3/gems/rest-client-1.4.2/lib/rest_client.rb:2:in `require'
    from /home/charlie/.rvm/gems/ruby-1.9.2-rc2@rails3/gems/rest-client-1.4.2/lib/rest_client.rb:2:in `<top (required)>'
    from /home/charlie/.rvm/gems/ruby-1.9.2-rc2@rails3/gems/heroku-1.9.13/lib/heroku/client.rb:2:in `require'
    from /home/charlie/.rvm/gems/ruby-1.9.2-rc2@rails3/gems/heroku-1.9.13/lib/heroku/client.rb:2:in `<top (required)>'
    from /home/charlie/.rvm/gems/ruby-1.9.2-rc2@rails3/gems/heroku-1.9.13/lib/heroku.rb:3:in `require'
    from /home/charlie/.rvm/gems/ruby-1.9.2-rc2@rails3/gems/heroku-1.9.13/lib/heroku.rb:3:in `<top (required)>'
    from /home/charlie/.rvm/gems/ruby-1.9.2-rc2@rails3/gems/heroku-1.9.13/bin/heroku:6:in `require'
    from /home/charlie/.rvm/gems/ruby-1.9.2-rc2@rails3/gems/heroku-1.9.13/bin/heroku:6:in `<top (required)>'
    from /home/charlie/.rvm/gems/ruby-1.9.2-rc2@rails3/bin/heroku:19:in `load'
    from /home/charlie/.rvm/gems/ruby-1.9.2-rc2@rails3/bin/heroku:19:in `<main>'

I did already try running 'apt-get install libopenssl-ruby', but it said that I had the latest version. What is the problem?

2

Re: Heroku is not working in my terminal

Hello,

I'm guessing that Rest-client 1.4.2 is incompatible with Ruby 1.9.2.

Have you tried updating it? archiloque's official fork of rest-client

Re: Heroku is not working in my terminal

Hello, I executed the following command:

gem install rest-client -v 1.6.0

to update my rest-client to the latest version, but I am getting the same error:

/home/charlie/.rvm/gems/ruby-1.9.2-rc2@rails3/gems/rest-client-1.6.0/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 /home/charlie/.rvm/gems/ruby-1.9.2-rc2@rails3/gems/rest-client-1.6.0/lib/restclient.rb:5:in `<top (required)>'
    from /home/charlie/.rvm/gems/ruby-1.9.2-rc2@rails3/gems/rest-client-1.6.0/lib/rest_client.rb:2:in `require'
    from /home/charlie/.rvm/gems/ruby-1.9.2-rc2@rails3/gems/rest-client-1.6.0/lib/rest_client.rb:2:in `<top (required)>'
    from /home/charlie/.rvm/gems/ruby-1.9.2-rc2@rails3/gems/heroku-1.9.13/lib/heroku/client.rb:2:in `require'
    from /home/charlie/.rvm/gems/ruby-1.9.2-rc2@rails3/gems/heroku-1.9.13/lib/heroku/client.rb:2:in `<top (required)>'
    from /home/charlie/.rvm/gems/ruby-1.9.2-rc2@rails3/gems/heroku-1.9.13/lib/heroku.rb:3:in `require'
    from /home/charlie/.rvm/gems/ruby-1.9.2-rc2@rails3/gems/heroku-1.9.13/lib/heroku.rb:3:in `<top (required)>'
    from /home/charlie/.rvm/gems/ruby-1.9.2-rc2@rails3/gems/heroku-1.9.13/bin/heroku:6:in `require'
    from /home/charlie/.rvm/gems/ruby-1.9.2-rc2@rails3/gems/heroku-1.9.13/bin/heroku:6:in `<top (required)>'
    from /home/charlie/.rvm/gems/ruby-1.9.2-rc2@rails3/bin/heroku:19:in `load'
    from /home/charlie/.rvm/gems/ruby-1.9.2-rc2@rails3/bin/heroku:19:in `<main>'