Homebrew Broken on Yosemite
After upgrading to Yosemite, your
brew could run into an error:
/usr/local/bin/brew: /usr/local/Library/brew.rb: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby: bad interpreter: No such file or directory /usr/local/bin/brew: line 23: /usr/local/Library/brew.rb: Undefined error: 0
This is because the path to ruby has changed. It can be solved easily be editing
Replace the first line “1.8” to “current” so it looks like this:
As a side effect, you could run into errors with “files would be overwritten by merge” when you
To solve, you need to update the brew repos.