Getting a “bad interpreter” error when using brew

前端 未结 12 1522
半阙折子戏
半阙折子戏 2020-12-01 14:13

I\'m getting this error when I try to run any brew command.

Holger-Sindbaeks-MacBook-Air:~ holgersindbaek$ brew help
-bash: /usr/local/bin/brew: /usr/bin/rub         


        
12条回答
  •  半阙折子戏
    2020-12-01 14:40

    None of the above worked for me, so I kept browsing and found this answer, https://stackoverflow.com/a/24225960/1359088 which did fix brew for me. He says in step 1 to install XCode 6 command line tools, but doesn't say how; use this command:

    xcode-select --install
    

提交回复
热议问题