I\'ve searched around a bit and can\'t seem to find any record of anyone else with this problem.
Whenever I try to run
$ brew update
The MACOS
constant is set in globals.rb
. It seems like you may have a borked installation of Homebrew.
Check the output of brew doctor
for any suggestions.
If that doesn't help please update with the results of brew --config
.
If all else fails you may want to try re-installing Homebrew.
UPDATE:
Since this was a previous user's machine make sure your user is the owner of /usr/local and everything within. Fix it with sudo chown -R $USER /usr/local
.