ubuntu22.04安装bazel
时间: 2023-08-02 07:06:47 浏览: 872
tensorflow1.4离线安装包
要在Ubuntu 22.04上安装Bazel,可以按照以下步骤进行操作:
1. 首先,安装所需的软件包。打开终端并运行以下命令:
```
sudo apt install g++ unzip zip
sudo apt-get install openjdk-11-jdk
```
2. 接下来,下载并安装Bazel的管理软件Bazelisk。运行以下命令:
```
wget https://github.com/bazelbuild/bazelisk/releases/download/v1.4.0/bazelisk-linux-amd64
chmod +x bazelisk-linux-amd64
sudo mv bazelisk-linux-amd64 /usr/local/bin/bazel
```
3. 进入你的ONOS项目目录(假设是~/onos),运行以下命令来检查Bazel的版本:
```
cd ~/onos
bazel version
```
请注意,这些步骤是一次性设置,只需要在安装Bazel时执行一次。希望这可以帮助你在Ubuntu 22.04上成功安装Bazel。\[1\]\[2\]\[3\]
#### 引用[.reference_title]
- *1* [bazel+tensorflow【未解决】+ubuntu20.04 源码安装](https://blog.csdn.net/weixin_54470372/article/details/127534345)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [SDN控制器-ONOS源码编译与mininet快速入门](https://blog.csdn.net/puhaiyang/article/details/127961268)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [在Ubuntu上安装Bazel](https://blog.csdn.net/qq_41204464/article/details/95333396)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文