安装brew coreutils报错:无可用匹配公式,求助解决
解决brew安装coreutils失败的方案
更新brew索引
先确保本地brew公式列表是最新的,执行:brew update若更新慢或失败,可切换国内镜像源(以清华镜像为例):
git -C "$(brew --repo homebrew/core)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git brew update确认homebrew/core tap已添加
检查并添加官方核心tap:brew tap homebrew/core之后再次尝试安装:
brew install coreutils安装4ndr34z的第三方coreutils
直接通过tap安装:brew tap 4ndr34z/coreutils brew install 4ndr34z/coreutils/coreutils若tap安装失败,可手动克隆仓库本地安装:
git clone https://github.com/4ndr34z/homebrew-coreutils.git cd homebrew-coreutils brew install ./coreutils.rb排查brew自身问题
执行诊断命令修复可能的brew损坏或配置问题:brew doctor根据输出提示完成修复后,再尝试安装操作。
内容的提问来源于stack exchange,提问作者tedd666
相关产品推荐
相关产品推荐

