OSX Homebrew error: uninitialized constant MACOS

后端 未结 5 1497
傲寒
傲寒 2020-12-19 02:26

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
5条回答
  •  粉色の甜心
    2020-12-19 02:52

    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.

提交回复
热议问题