M1 Mac OSx Bigsur:每次系统更新后都必须重新安装命令行工具

时间:2021-03-09 20:10:12

标签: macos homebrew macos-big-sur xcode-command-line-tools

在我的带有 Bigsur 的新 macbook pro M1 上,每次安装系统更新时,我都必须重新安装命令行工具。启动终端并运行 brew doctor home-brew 时抱怨没有安装 git 和命令行工具:

$ brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: Git could not be found in your PATH.
Homebrew uses Git for several internal functions, and some formulae use Git
checkouts instead of stable tarballs. You may want to install Git:
  brew install git

Warning: No developer tools installed.
Install the Command Line Tools:
  xcode-select --install

一旦我运行:xcode-select --install(是的,它确实再次安装了命令行工具,因为它需要大约 5 分钟)一切都会再次运行,直到下一次 OSx 更新出现在计算机重新启动之前。为什么会发生这种情况?我以前从未遇到过这些问题?

0 个答案:

没有答案