【发布时间】:2022-06-26 15:52:11
【问题描述】:
我一直在尝试使用 Bazel 的新版本安装 ONOS,即在用于 mininet/containernet 的 Ubuntu 20.04 LTS 中的 Bazel-5.1.1。我一直有关于 Bazel build onos 命令的问题。我已经搜索了整个安装过程并尝试了很多。但是有类似的问题。是否有任何链接或文章有明确的分步程序?我有一个安装任务,我需要在一周内完成。任何帮助,将不胜感激。提前致谢。
我得到的错误:
sendate@sendate04:~/onos$ bazel build onos
ERROR: The project you're trying to build requires Bazel 3.7.2 (specified in /home/sendate/onos/.bazelversion), but it wasn't found in /home/sendate/.bazel/bin.
Bazel binaries for all official releases can be downloaded from here:
https://github.com/bazelbuild/bazel/releases
You can download the required version directly using this command:
(cd "/home/sendate/.bazel/bin" && curl -fLO https://releases.bazel.build/3.7.2/release/bazel-3.7.2-linux-x86_64 && chmod +x bazel-3.7.2-linux-x86_64)
我尝试执行下载相同版本等给出的步骤,并尝试更改 .bazelversion 文件中的版本。但是 Bazel 构建没有任何成功。
【问题讨论】:
-
我在用 bazel 构建 ONOS 时开始,它不是 .oar 文件。您应该通过这个 google group reference 了解更多信息。 groups.google.com/a/onosproject.org/g/onos-dev/c/tOjE8YHzcaU
-
感谢您的评论。我很久以前就浏览过这个谷歌小组,但我找不到任何相关的答案。
标签: build bazel ubuntu-20.04 mininet onos