我升级了MacOS Ventura 13。当我brew安装git时,出现了错误:
Warning: You are using macOS 13.
We do not provide support for this pre-release version.
发布于 2022-10-26 21:51:08
Brew提出了几种可能的解决方案:
Warning: Your Command Line Tools (CLT) does not support macOS 13.
It is either outdated or was modified.
Please update your Command Line Tools (CLT) or delete it if no updates are available.
Update them from Software Update in System Preferences or run:
softwareupdate --all --install --force
If that doesn't show you any updates, run:
sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install
Alternatively, manually download them from:
https://developer.apple.com/download/all/.
You should download the Command Line Tools for Xcode 14.1.
第一条和第二条建议在我写这篇文章的时候对我没有用。尝试第三个建议,所以通过https://developer.apple.com/download/all/下载CLT RC2确实做到了这一点。
之后,您可以通过运行brew doctor
来确认这一点。CLT警告应该不再存在。
发布于 2022-11-09 02:31:29
更新自制软件本身将解决这个问题。
在运行brew update
之前运行brew upgrade
发布于 2022-11-10 07:49:21
实际上,升级brew应该解决这个问题,因为https://brew.sh/2022/09/07/homebrew-3.6.0/有初步的支持。
由于某种原因,在我的经验中,brew本身并没有正常运行,例如brew更新和brew升级都不起作用。因此,我卸载并重新安装了brew版本3.6.10。
试着解决这个问题。
https://stackoverflow.com/questions/74205128
复制相似问题