Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why can't brew find a specific known formula?

Tags:

homebrew

bazel

I'm trying to install bazel on my mac (10.11.5).

I can see that it is available through brew: http://braumeister.org/formula/bazel

But when I run "brew install bazel", I get this:

Error: No available formula for bazel 
Searching formulae...
Searching taps...

Why is this?

like image 339
anonymouse Avatar asked Jun 04 '16 22:06

anonymouse


People also ask

Does Homebrew build from source?

Homebrew's pre-built binary packages (known as bottles) of many formulae can only be used if you install in the default installation prefix, otherwise they have to be built from source. Building from source takes a long time, is prone to failure, and is not supported.

Where are Homebrew formulas stored?

Packages are installed according to their formulae, which live in /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula .


2 Answers

In my case, Homebrew was already up-to-date after running brew update and I still received the same error messages as the OP when trying to install xdebug:

$ brew update
Already up-to-date.
$ brew install php70-xdebug
Error: No available formula with the name "php70-xdebug"

Using Mark's suggestion from the comments on OP solved the problem:

$ brew search xdebug
homebrew/php/xdebug-osx    homebrew/php/php70-xdebug

So now, running $ brew install homebrew/php/php70-xdebug, Homebrew found and installed the package.

like image 97
TheKarateKid Avatar answered Sep 28 '22 10:09

TheKarateKid


You should update your brews, because it is indeed available. Run

brew update
brew install bazel

and then it should work.

like image 24
Chiel Avatar answered Sep 28 '22 08:09

Chiel