diff options
author | Thomas Broyer <t.broyer@ltgt.net> | 2017-07-10 15:29:17 +0200 |
---|---|---|
committer | László Csomor <laszlocsomor@google.com> | 2017-07-10 17:44:37 +0200 |
commit | d5930eae8660a1192c8235206f83c28c9bd471a1 (patch) | |
tree | ef14921a0d84b21ac2b32a9c2ff6e98f6d626846 /site/docs/install-ubuntu.md | |
parent | 45d1c3754883d002e9880644a63c0d07390465a5 (diff) |
Allow Debian package to be installed alongside JDK 9
Update the documentation to instruct explicitly installing JDK 8.
Fixes #3147
Change-Id: If92ff93b095bead043c9b069e000b7afbc0abca0
PiperOrigin-RevId: 161387193
Diffstat (limited to 'site/docs/install-ubuntu.md')
-rw-r--r-- | site/docs/install-ubuntu.md | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/site/docs/install-ubuntu.md b/site/docs/install-ubuntu.md index 4c0b99cd1b..fbe8c945d2 100644 --- a/site/docs/install-ubuntu.md +++ b/site/docs/install-ubuntu.md @@ -8,7 +8,6 @@ title: Installing Bazel on Ubuntu Supported Ubuntu Linux platforms: * 16.04 (LTS) -* 15.10 * 14.04 (LTS) Install Bazel on Ubuntu using one of the following methods: @@ -24,9 +23,24 @@ Bazel comes with two completion scripts. After installing Bazel, you can: ## <a name="install-on-ubuntu"></a> Using Bazel custom APT repository (recommended) -### 1. Add Bazel distribution URI as a package source (one time setup) +### 1. Install JDK 8 +Install JDK 8 by using: + +```bash +sudo apt-get install openjdk-8-jdk +``` + +On Ubuntu 14.04 LTS you'll have to use a PPA: + +```bash +sudo add-apt-repository ppa:webupd8team/java +sudo apt-get update && sudo apt-get install oracle-java8-installer ``` + +### 2. Add Bazel distribution URI as a package source (one time setup) + +```bash echo "deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list curl https://bazel.build/bazel-release.pub.gpg | sudo apt-key add - ``` @@ -34,7 +48,7 @@ curl https://bazel.build/bazel-release.pub.gpg | sudo apt-key add - If you want to install the testing version of Bazel, replace `stable` with `testing`. -### 2. Install and update Bazel +### 3. Install and update Bazel ```bash sudo apt-get update && sudo apt-get install bazel @@ -55,7 +69,7 @@ libraries must also be installed for Bazel to work. ### 1. Install required packages -``` +```bash sudo apt-get install pkg-config zip g++ zlib1g-dev unzip ``` |