我正在尝试使用自制软件在运行MacOS Sierra 10.12.6的新机器上安装cmake:
brew install cmake
结果在
Error: No available formula with the name "cmake"
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching taps...
==> Searching taps on GitHub...
Error: No formulae found in taps.
我不能使用自制软件安装 cmake 吗?
更新:我在一台新机器上对此进行了测试,它刚刚安装没有问题。 我不确定当前机器发生了什么,但如果是如下所示的索引问题,我该如何解决它? 我已经运行了brew update
.
我在安装 Go、ranbrew doctor
时遇到了同样的问题
修复了所有警告,因为提示是由 brew 医生命令
然后再次给出安装命令brew update && brew install golang
它奏效了,您可以为您的软件包做同样的事情
我没有弄清楚出了什么问题,但我能够通过完全卸载自制软件来解决问题
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
然后重新安装它
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
这对我有用!!
rm -rf "/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core"
brew tap homebrew/core