./compile.sh
Building Bazel from scratch
ERROR: Must specify PROTOC if not bootstrapping from the distribution artifact
Building Bazel from scratch
ERROR: Must specify PROTOC if not bootstrapping from the distribution artifact
--------------------------------------------------------------------------------
NOTE: This failure is likely occuring if you are trying to bootstrap bazel from
a developer checkout. Those checkouts do not include the generated output of
the protoc compiler (as we prefer not to version generated files).
NOTE: This failure is likely occuring if you are trying to bootstrap bazel from
a developer checkout. Those checkouts do not include the generated output of
the protoc compiler (as we prefer not to version generated files).
* To build a developer version of bazel, do
bazel build //src:bazel
* To bootstrap your first bazel binary, please download a dist archive from our
release page at https://github.com/bazelbuild/bazel/releases and run
compile.sh on the unpacked archive.
release page at https://github.com/bazelbuild/bazel/releases and run
compile.sh on the unpacked archive.
The full install instructions to install a release version of bazel can be found
at https://docs.bazel.build/install-compile-source.html
For a rationale, why the bootstrap process is organized in this way, see
https://bazel.build/designs/2016/10/11/distribution-artifact.html
-------------------------------------------------------------------------------
at https://docs.bazel.build/install-compile-source.html
For a rationale, why the bootstrap process is organized in this way, see
https://bazel.build/designs/2016/10/11/distribution-artifact.html
-------------------------------------------------------------------------------
sudo apt install protobuf-compiler
本文介绍了一种常见的Bazel构建过程中的错误——未指定PROTOC的情况,并提供了详细的解决步骤。对于从源码构建Bazel遇到此问题的开发者,文中推荐了两种解决方案:一是通过Bazel构建开发版本;二是下载发布版本并运行compile.sh。此外,还给出了安装protobuf编译器的命令。

492

被折叠的 条评论
为什么被折叠?



