cmake - 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
。
解决方案
这对我有用!
rm -rf "/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core"
brew tap homebrew/core
推荐阅读
- reactjs - react-navigation 导航不是函数错误。- 类组件
- mariadb-10.4 - 如何获取MySQL中包含最大值的行数据?
- flask - 在heroku上部署烧瓶应用程序时出错:无法在“应用程序”中找到属性“应用程序”
- reactjs - 以列表形式显示的反应建议
- javascript - 如何使用 react 自定义钩子使代码可重用
- json - 如何强制请求包含 Spring 中的所有属性?
- javascript - 无需重复即可创建 JavaScript 对象
- java - 连续扫描仪输入
- xml - 遍历来自 xml 的列表会导致 Ansible
- java - 如何使用 JDBC 数据源在 JavaFX 中构建多级 TreeView?