One of the downsides of playing with beta software is that your stuff breaks. For OS X 10.10 (Yosemite), Homebrew was one of those things.
Here’s how I fixed it:
- Nuke the previous one.
rm -rf /usr/local/Cellar
- Install the new one.
ruby -e “$(curl -fsSL https://raw.github.com/Homebrew/
homebrew/go/install)” - Run Brew Doctor.
brew doctor
- Clean up any issues.
- Install your software.
Now you’ll be running with Ruby 2.x (default in Yosemite) as well as the latest Homebrew.