Installing Bazel 0.25.0
Procedure
- Use PuTTY to log in to the server as the root user.
- Go to the installation directory of the main program.
cd /path/to/bazel
- Decompress the package.
unzip -d bazel-0.25.0 bazel-0.25.0-dist.zip
- Perform the compilation and installation.
cd bazel-0.25.0 EXTRA_BAZEL_ARGS='--host_javabase=@local_jdk//:jdk' ./compile.sh
- Set the environment variables.
export PATH=/path/to/bazel/bazel-0.25.0/output:$PATH
- Perform the verification.
bazel version
Parent topic: Configuring the Compilation Environment