Search code examples
ruby-on-railsrubymacosherokuheroku-toolbelt

The heroku command exists in these Ruby versions?


After I updated my Ruby version with rbenv I wasn't able to use the Heroku command-line tool. I got this error:

> heroku
rbenv: heroku: command not found

The `heroku' command exists in these Ruby versions:
  2.0.0-p195

Reinstalling the tool belt from toolbelt.heroku.com didn't help.


Solution

  • I switched to my previous Ruby version 2.0.0p195 and uninstalled the gem 'heroku'

    rbenv global 2.0.0p195
    
    gem uninstall heroku
    

    Then I switched to the latest Ruby version 2.0.0p353 and reinstalled Toolbelt toolbelt.heroku.com

    rbenv global 2.0.0p353