升级MacMojave 后brew无法使用

众所周知,brew 可谓是Mac下管理软件的一大神器,通过brew,可以很方便的安装各种软件,非常方便。

安装brew不是本篇文章的重点,网上有非常多的文档了,其实也很简单,参照官网,一条指令的事。

前两天,更新完MacMojave后,发现brew无法使用了,一直提示”Error:Failure while executing;”

1
2
Error: Failure while executing; `git config --local --replace-all homebrew.analyticsmessage true` exited with 1.
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

一番搜索后,在国外论坛stackexchange发现解决之道:更新下xcode command line即可。

安装命令:

1
xcode-select --install

安装完后再执行brew upgrade,一切正常。

升级MacMojave 后brew无法使用

https://repfaststart.com/posts/71145f5c.htm

作者

Frog Rain

发布于

2018-10-15

更新于

2025-04-08

许可协议