Could not find heroku (> = 0) among [] (Gem :: LoadError)

Ug. I just switched from installing Windows 7 to the Lion system. I'm trying to teach myself Ruby on Rails, and although I like the language, the environment seems fragile and cryptic. I used the same command to install geroku on both systems, but System X is not happy with the installation.

In System X, I used rvm, which may be my problem.

What controls where gems are installed?

How can I launch a hero? And what will not allow to lose the next stone?

$ sudo gem install heroku ... $ heroku -v ~/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find heroku (>= 0) amongst [minitest-1.6.0, rake-0.8.7, rdoc-2.5.8] (Gem::LoadError) from /Users/aliwells26/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:256:in `to_spec' from /Users/aliwells26/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems.rb:1210:in `gem' from /Users/aliwells26/.rvm/gems/ ruby-1.9.2-p290@rails3tutorial /bin/heroku:18:in `<main>' $ gem environment RubyGems Environment: - RUBYGEMS VERSION: 1.8.11 - RUBY VERSION: 1.9.2 (2011-07-09 patchlevel 290) [x86_64-darwin11.2.0] - INSTALLATION DIRECTORY: /Users/aliwells26/.rvm/gems/ ruby-1.9.2-p290@rails3tutorial - RUBY EXECUTABLE: /Users/aliwells26/.rvm/rubies/ruby-1.9.2-p290/bin/ruby - EXECUTABLE DIRECTORY: /Users/aliwells26/.rvm/gems/ ruby-1.9.2-p290@rails3tutorial /bin - RUBYGEMS PLATFORMS: - ruby - x86_64-darwin-11 - GEM PATHS: - /Users/aliwells26/.rvm/gems/ ruby-1.9.2-p290@rails3tutorial - /Users/aliwells26/.rvm/gems/ ruby-1.9.2-p290@global - GEM CONFIGURATION: - :update_sources => true - :verbose => true - :benchmark => false - :backtrace => false - :bulk_threshold => 1000 - REMOTE SOURCES: - http://rubygems.org/ $ echo $PATH /Users/aliwells26/.rvm/gems/ ruby-1.9.2-p290@rails3tutorial /bin:/Users/aliwells26/.rvm/bin:/Users/aliwells26/.rvm/gems/ruby-1.9.2-p290/gems/rails-3.1.1/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/git/bin:/usr/local/git/bin 
+7
source share
5 answers

This may be helpful. He worked on my environment.

 rvmsudo gem install heroku 

See: Could not find rails (> = 0) among [] (Gem :: LoadError)

+18
source

I reloaded Heroku Toolbelt, re = opened the terminal, then it worked.

get the tool belt here: https://toolbelt.heroku.com/

+2
source

According to Heroku's blog , the stone will soon cease to be supported.

Many people may come GemLoadError this message, as you can get a similar GemLoadError when moving from a gem to a Toolbelt .

I posted a solution to this question on this issue: Toolbelt install: Could not find Heroku gem .

+2
source

Michael Kohl commented on the issue, resolving the issue: gem install heroku worked like a charm.

Thanks and respect.

0
source

I ran into the same problem (Mac OSX 10.10.3) and none of the solutions provided resolved it (I also tried to link Rob Cooper's answer).

I dug up on my hard drive (I usually save notes, etc. in text files), and could find notes for myself on how to install Heroku Toolbelt via Homebrew. Running these three lines in the terminal solved the problem for me - I hope they can be useful for someone else:

 in a terminal window: > brew install wget > wget -qO- https://toolbelt.heroku.com/install.sh | sh (may require superuser password to continue) lastly: > echo 'PATH="/usr/local/heroku/bin:$PATH"' >> ~/.profile (add to PATH) ??? PROFIT! 

... yes, my notes may be strange to me.

0
source

All Articles