首页 > 解决方案 > brew install cmake 找不到公式

问题描述

我正在尝试使用自制软件在运行 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

标签: cmakehomebrew

解决方案


这对我有用!

rm -rf "/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core"
brew tap homebrew/core

推荐阅读