码迷,mamicode.com
首页 > 其他好文 > 详细

Bazel构建工具的安装

时间:2017-07-12 18:58:40      阅读:1299      评论:0      收藏:0      [点我收藏+]

标签:pre   upgrade   osi   tab   str   ubuntu   open   storage   recommend   

官方Doc:https://docs.bazel.build/versions/master/install-ubuntu.html

1. Install JDK 8

安装JDK 8使用下面命令::

sudo apt-get install openjdk-8-jdk

在 Ubuntu 14.04 LTS你可能需要使用 PPA:

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update && sudo apt-get install oracle-java8-installer

2. 添加Bazel分发URI作为包源(一次设置)

输入下面命令

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 -

If you want to install the testing version of Bazel, replace stable with testing.

3. 安装和更新 Bazel

sudo apt-get update && sudo apt-get install bazel

一旦安装,您可以升级到更新版本的Bazel:

sudo apt-get upgrade bazel

Bazel构建工具的安装

标签:pre   upgrade   osi   tab   str   ubuntu   open   storage   recommend   

原文地址:http://www.cnblogs.com/jackchen-Net/p/7156763.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!