我正在尝试在我的 mac (10.11.5) 上安装 bazel。
我可以看到它可以通过 brew 获得:http: //braumeister.org/formula/bazel
但是当我运行“brew install bazel”时,我得到了这个:
Error: No available formula for bazel
Searching formulae...
Searching taps...
为什么是这样?
我正在尝试在我的 mac (10.11.5) 上安装 bazel。
我可以看到它可以通过 brew 获得:http: //braumeister.org/formula/bazel
但是当我运行“brew install bazel”时,我得到了这个:
Error: No available formula for bazel
Searching formulae...
Searching taps...
为什么是这样?
就我而言,Homebrew 在运行后已经是最新的,brew update
并且在尝试安装 xdebug 时我仍然收到与 OP 相同的错误消息:
$ brew update
Already up-to-date.
$ brew install php70-xdebug
Error: No available formula with the name "php70-xdebug"
使用马克在 OP 评论中的建议解决了这个问题:
$ brew search xdebug
homebrew/php/xdebug-osx homebrew/php/php70-xdebug
所以现在,运行$ brew install homebrew/php/php70-xdebug
,Homebrew 找到并安装了包。
您应该更新您的 brews,因为它确实可用。跑
brew update
brew install bazel
然后它应该工作。