由于在更新brew时遇到问题,因此决定重装brew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
中间可能需要输入密码,忽略可能出现的warning,直到最后卸载成功
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
这里我选择了中科大下载源
国内镜像我选择了清华国内源
source /Users/<本机用户名>/.bash_profile
查看brew版本,安装成功!整个过程非常舒适
$ brew -v
Homebrew 3.4.9-19-g607c7b6
Homebrew/homebrew-core (git revision e937ec006ef; last commit 2022-04-29)
Homebrew/homebrew-cask (git revision e44655f630; last commit 2022-04-29)
再次安装isl
软件包继续报错
$ brew install isl
# ...
==> Running `brew cleanup isl`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
按照提示输入以下命令
$ export HOMEBREW_NO_INSTALL_CLEANUP=TRUE
再次重装该软件包即可成功