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

前端 未结 5 1478
终归单人心
终归单人心 2021-02-15 12:02

Ug. I just moved from a Windows 7 installation to a Lion system. I\'m attempting to teach myself Ruby on Rails, and whilst I like the language, the environment feels fragile and

相关标签:
5条回答
  • 2021-02-15 12:25

    This might be useful. It worked on my environment.

    rvmsudo gem install heroku
    

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

    0 讨论(0)
  • 2021-02-15 12:38

    Michael Kohl comment on the question resolved the issue: gem install heroku worked like a charm.

    Thanks and Regards.

    0 讨论(0)
  • 2021-02-15 12:42

    I re-downloaded the Heroku Toolbelt, re=opened Terminal, then it worked.

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

    0 讨论(0)
  • 2021-02-15 12:43

    I was running into the same issue (Mac OSX 10.10.3), and none of the solutions provided resolved it (I also tried Rob Cooper's linked answer).

    I dug around on my hard drive (I tend to keep notes and such in text files) and was able to find notes to myself on installing the Heroku Toolbelt through Homebrew. Running these three lines in Terminal resolved the issue for me - hopefully they can be of use to someone else as well:

    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!
    

    ...yeah, my notes to myself can be odd.

    0 讨论(0)
  • 2021-02-15 12:46

    As per the Heroku blog, the gem is going to stop being maintained very soon.

    Many people may come across this post since you may get a similar GemLoadError when migrating from the gem to the Toolbelt.

    I've posted the solution to this on this question: Toolbelt install: Could not find gem Heroku.

    0 讨论(0)
提交回复
热议问题