Does heroku team exist in these versions of Ruby?

After I updated my version of Ruby with rbenv, I was not 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 did not help.

+6
source share
6 answers

I upgraded to a previous version of Ruby 2.0.0p195 and removed the "heroku" gem

 rbenv global 2.0.0p195 gem uninstall heroku 

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

 rbenv global 2.0.0p353 
+8
source

Heroku has not recommended the use of heroku gem since recent times. If you have already installed the gem, first remove the gem:

 $ gem uninstall heroku 

then install the Heroku toolkit as listed on the Heroku website :

For ubuntu / debian :

 $ wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh 

For another linux :

 $ wget -qO- https://toolbelt.heroku.com/install.sh | sh 

For Windows / MacOS, see the instructions for the link.

+4
source

If you are using rbenv , follow these steps to fix it.

Error

 rbenv: heroku: command not found The `heroku' command exists in these Ruby versions: 2.2.2 

What to do

  • rbenv local 2.2.2
  • gem uninstall heroku
  • rbenv rehash

Good to go!

+3
source

I had a similar problem. I had the installation of heroku gem on different versions of ruby, and despite the fact that I installed the hero toolbelt from this package downloaded from my site, I still got:

 rbenv: heroku: command not found 

I found that after I removed the gem from all my ruby ​​versions, I had to run:

 rbenv rehash 

After that, I found that everything works fine. I found this from this stackoverflow answer:

ruby - heroku: command not found

+2
source

I also had this problem if you execute the following command in a terminal:

 which convert 

And you will return this: Users / user_name / .rbenv / shims / convert, you must delete this file in your pads.

 rm Users/user_name/.rbenv/shims/convert 

If you do what to convert again, it should return another URL: / usr / local / bin / convert

+1
source

On MacOS, the thing is that rbenv confused with brew and heroku binary.

Geroku recommends installing brew for Mac. Now you need to make sure that you do not have a gem installed with any other version of Ruby managed with rbenv .

If you do, just reinstall them and you will be fine.

0
source

All Articles