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
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.