Hub: How to upgrade 'hub' ?

Created on 28 Dec 2015  路  1Comment  路  Source: github/hub

Hi,

Here is my issue:
I upgrade my ruby version to ruby 2.2.3p173
After that each command :

hub create

or

brew upgrade hub --HEAD

give

rbenv: hub: command not found

The `hub' command exists in these Ruby versions:
  2.1.2

Most helpful comment

You should uninstall the "hub" gem:

RBENV_VERSION=2.1.2 gem uninstall -x hub
rbenv rehash

Then, confirm that Homebrew hub is the only installation remaining:

which -a hub
#=> /usr/local/bin/hub

Then you should be good!

>All comments

You should uninstall the "hub" gem:

RBENV_VERSION=2.1.2 gem uninstall -x hub
rbenv rehash

Then, confirm that Homebrew hub is the only installation remaining:

which -a hub
#=> /usr/local/bin/hub

Then you should be good!

Was this page helpful?
0 / 5 - 0 ratings