diff options
author | Steren <steren.giannini@gmail.com> | 2017-02-28 17:51:38 +0000 |
---|---|---|
committer | Kristina Chodorow <kchodorow@google.com> | 2017-02-28 18:56:16 +0000 |
commit | 8e29780fed3012ae05348f68bda9103b6e0de1e5 (patch) | |
tree | aebbeabe7fc792698a9e2056f487149c9cefb6ef | |
parent | eed1ea7cd72cf5895e2864146879b28b23d0ed93 (diff) |
Add Java install step for Homebrew install guide
fix #2438
Closes #2439.
--
Reviewed-on: https://github.com/bazelbuild/bazel/pull/2439
PiperOrigin-RevId: 148781010
MOS_MIGRATED_REVID=148781010
-rw-r--r-- | site/versions/master/docs/install.md | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/site/versions/master/docs/install.md b/site/versions/master/docs/install.md index fb1f562d03..e67c7247a3 100644 --- a/site/versions/master/docs/install.md +++ b/site/versions/master/docs/install.md @@ -136,25 +136,31 @@ You can also add this command to your `~/.bashrc` file. Install Bazel on Mac OS X using one of the following methods: - * [Using Homebrew](#install-on-mac-os-x-homebrew) - * [Using binary installer](#install-with-installer-mac-os-x) + * [Install using Homebrew](#install-on-mac-os-x-homebrew) + * [Install with installer](#install-with-installer-mac-os-x) * [Compiling Bazel from source](#compiling-from-source) -### <a name="install-on-mac-os-x-homebrew"></a>Using Homebrew +### <a name="install-on-mac-os-x-homebrew"></a>Install using Homebrew -#### 1. Install Homebrew on Mac OS X (one time setup) +#### 1. Install JDK 8 + +JDK 8 can be downloaded from +[Oracle's JDK Page](http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html). +Look for "Mac OS X x64" under "Java SE Development Kit". This will download a +DMG image with an install wizard. + +#### 2. Install Homebrew on Mac OS X (one time setup) `$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"` -#### 2. Install Bazel Homebrew Package +#### 3. Install Bazel Homebrew Package `$ brew install bazel` -Once installed, you can upgrade to newer version of Bazel with: - -`$ brew upgrade bazel` +You are all set. You can confirm Bazel is installed successfully by running `bazel version`. +You can later upgrade to newer version of Bazel with `brew upgrade bazel`. ### <a name="install-with-installer-mac-os-x"></a>Install with installer @@ -216,6 +222,7 @@ $ export PATH="$PATH:$HOME/bin" You can also add this command to your `~/.bashrc` file. +You are all set. You can confirm Bazel is installed successfully by running `bazel version`. ## <a name="windows"></a>Windows |