ubuntu18.04安装bazle
时间: 2023-11-15 17:56:05 浏览: 112
ubuntu18.04安装包
好的,以下是安装Bazel的步骤:
1. 安装Java JDK
```
sudo apt-get install openjdk-8-jdk
```
2. 添加Bazel的APT仓库密钥
```
curl https://bazel.build/bazel-release.pub.gpg | sudo apt-key add -
```
3. 添加Bazel的APT仓库
```
echo "deb [arch=amd64] https://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list
```
4. 更新APT缓存
```
sudo apt-get update
```
5. 安装Bazel
```
sudo apt-get install bazel
```
安装完成后,您可以通过运行以下命令来验证Bazel是否已成功安装:
```
bazel version
```
如果一切正常,您应该会看到Bazel的版本信息。
阅读全文