错误
brew install cmake
Warning: Treating cmake as a formula. For the cask, use homebrew/cask/cmake
Warning: You are using macOS 12.
We do not provide support for this pre-release version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Twitter or any other official channels. You are responsible for resolving
any issues you experience while you are running this
pre-release version.
Error: cmake: no bottle available!
You can try to install from source with:
brew install --build-from-source cmake
Please note building from source is unsupported. You will encounter build
failures with some formulae. If you experience any issues please create pull
requests instead of asking for help on Homebrew's GitHub, Twitter or any other
official channels.
->brew update
cat: /usr/local/Homebrew/.git/TMP_FETCH_FAILURES: No such file or directory
Error: Fetching /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask-fonts failed!
Fetching /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core failed!
Fetching /usr/local/Homebrew failed!
Fetching /usr/local/Homebrew/Library/Taps/mongodb/homebrew-brew failed!
Fetching /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask failed!
解决办法一:
echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles' >> ~/.zshrc
source ~/.zshrc
brew update
解决办法二:
brew update-reset && source ~/.zshrc
brew update