项目地址github
安装需要的包
bazel安装
- 方法一
Install using binary installer(推荐)
wget https://github.com/bazelbuild/bazel/releases/download/0.7.0/bazel-0.7.0-installer-darwin-x86_64.sh
chmod +x bazel-0.7.0-installer-darwin-x86_64.sh
./bazel-0.7.0-installer-darwin-x86_64.sh --user
- 方法二
注:如果使用此方法安装,别的用户是没办法使用bazel的。
因此,推荐第一种方法安装
sudo apt-get install openjdk-8-jdk
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update && sudo apt-get install oracle-java8-installer
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 -
sudo apt-get update && sudo apt-get install bazel
sudo apt-get upgrade bazel
网友评论