不知道各位遇到没有。折腾一下午搞定了。遇到的可以参考一下:
系统是big sur 11.4。我用brew安装htop。提示出错:
? brew install htop
Updating Homebrew...
Warning: You are using macOS 11.4.
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,
Discourse, Twitter or IRC. You are responsible for resolving any issues you
experience while you are running this pre-release version.
Error: python@3.9: wrong number of arguments (given 1, expected 0)
这是搜到的办法:
https://www.v2ex.com/t/725768
https://github.com/GoogleContainerTools/kpt/issues/962
但是我是这样把错误折腾没的:
升级到最新的xcode
然后安装cmd xcode-select --install
然后更新brew brew upgrade,提示如下错误。但是仍然升级完了。
? brew upgrade
Error:
homebrew-core is a shallow clone.
homebrew-cask is a shallow clone.
To `brew update`, first run:
git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow
git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask fetch --unshallow
These commands may take a few minutes to run due to the large size of the repositories.
This restriction has been made on GitHub's request because updating shallow
clones is an extremely expensive operation due to the tree layout and traffic of
Homebrew/homebrew-core and Homebrew/homebrew-cask. We don't do this for you
automatically to avoid repeatedly performing an expensive unshallow operation in
CI systems (which should instead be fixed to not use shallow clones). Sorry for
the inconvenience!
然后我安装错误提示执行:
git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow
git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask fetch --unshallow
成功后再次执行brew instal htop
安装成功了。
--
FROM 221.216.194.*