apollo icon indicating copy to clipboard operation
apollo copied to clipboard

Bazel command not found

Open lyletbjohnson opened this issue 8 years ago • 3 comments

While attempting to build Apollo modules, I experience the following error:

$ source ./scripts/apollo_base.sh
$ ./apollo.sh build_opt_gpu
System check passed. Build continue ...
[INFO] Start building, please wait ...
./apollo.sh: line 90: bazel: command not found
============================
[ERROR] Build failed!
[INFO] Took 0 seconds
============================

There have been no explicit changes to the environment that would interact with bazel, however the system is clearly not happy.

The command which bazel returns an empty string, indicating the tool doesn't exist.

Is there a way to source the bazel environment manually? At what step in Apollo installation is bazel installed / configured?

Please post commands / troubleshooting steps and I'll follow up with information about my system.

lyletbjohnson avatar Feb 06 '18 22:02 lyletbjohnson

Please make sure you are building inside a docker container. Please refer to README for docker environment setup.

jinghaomiao avatar Feb 06 '18 23:02 jinghaomiao

Thank you, this was my issue.

I kindly request that startup documentation is updated to explicitly call out when commands are run within the host, or within the docker container.

lyletbjohnson avatar Feb 06 '18 23:02 lyletbjohnson

@lyletbjohnson thank you for your request! We will integrate your request and revising our startup documentation.

Zhenni17 avatar Apr 11 '18 07:04 Zhenni17