上QQ阅读APP看书,第一时间看更新
Installing using Homebrew
The following are the steps to install Homebrew:
- Homebrew has dependency with JDK, which you need to install first. Download the latest JDK from the Oracle website and install it.
- Then, install Homebrew.
You can run the following script directly from Terminal:
/usr/bin/ruby -e "$(curl -fsSL \
https://raw.githubusercontent.com/Homebrew/install/master/install)"
Once Homebrew is installed, you can install Bazel with the following command:
brew install bazel
All is well. Now, you can verify the Bazel version using the command shown here:
bazel version
If Bazel is already installed, you can upgrade the version using this command:
brew upgrade bazel
Note that Bazel does not currently support Android builds on Windows. Windows users should download the pre-built binary.