搜尋此網誌

2017年2月6日 星期一

安裝 Google Bazel

這裡的 OS 是指 Ubuntu

1. 首要工作,檢查網路 DNS 機能是否正常
sudo -i
vi /etc/network/interfaces
dns-nameservers 168.95.1.1 139.175.1.1
/etc/init.d/networking restart

ping dns.hinet.net
exit

sudo apt-get update
sudo apt-get -y install openjdk-8-jre-headless


2. Add Bazel distribution URI as a package source (one time setup)
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 -


3. Install and update Bazel
sudo apt-get update && sudo apt-get -y install bazel
sudo apt-get -y upgrade bazel

稍等下載與安裝更新即可

- The End -



沒有留言:

張貼留言

搜尋此網誌