Toolbelt Installation: Failed to find Heroku Gem

I get the message "Can't find RubyGem heroku (Gem :: LoadError)" when I try to execute any Heroku commands from the terminal in my application directory. We tried to wipe and reinstall Toolbelt, as well as any previously installed Heroku jewelry.

Using the full path works and - the application name works (/ usr / bin / heroku config - myapp-stage application). Using OS X 10.8.1.

echo $PATH /Users/johndoe/.rvm/gems/ ruby-1.9.3-p194@llctlc /bin:/Users/johndoe/.rvm/gems/ruby-1.9.3 p194@global /bin:/Users/johndoe/.rvm/rubies/ruby-1.9.3-p194/bin:/Users/johndoe/.rvm/bin:/Users/johndoe/.gem/ruby/1.8/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin:/usr/bin/heroku:/opt/local/sbin:/opt/local/bin:/usr/local/mysql/bin:/Users/johndoe/.ec2/bin:/usr/local/git/bin $ heroku /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:777:in `report_activate_error': Could not find RubyGem heroku (>= 0) (Gem::LoadError) from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:211:in `activate' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:1056:in `gem' from /Users/johndoe/.gem/ruby/1.8/bin/heroku:18 

Thanks in advance for your help or advice.

+5
source share
1 answer

I had the same problem.

  • Uninstall Gem gem uninstall heroku (select "All Versions").
  • Find your Ruby bin path by running gem env (it's under ' EXECUTABLE DIRECTORY: ')
  • cd to the bin folder.
  • Delete Heroku rm heroku
  • Restart the shell (close the terminal tab and open it)
  • Click heroku version , you should see something like:

heroku-toolbelt/2.33.1 (x86_64-darwin10.8.0) ruby/1.9.3

Now you can heroku login follow your instructions and return to hacking :)

+20
source

All Articles