How to Install Bazel?
WHAT YOU WILL LEARN?
1- How to Download Bazel?
2- How to Install Bazel?
ENVIRONMENT
Hardware: DSBOX-NX2 Xavier-NX 16GB with NVME SSD
OS: Jetpack 5.0.2
In this blog-post, we will install Bazel on Jetson. First, we will download bazelisk-linux-arm64 file from github bazelisk library. Then, we will install it.
Below steps show installation of bazelisk v1.8.1, but you can install any desired version from https://github.com/bazelbuild/bazelisk/releases using same steps.
Downloading Bazel
First, download bazeliks-linux-arm64 file using wget command.
wget https://github.com/bazelbuild/bazelisk/releases/download/v1.8.1/bazelisk-linux-arm64
Installing Bazel
Change file’s privileges to executable using below command.
chmod +x bazelisk-linux-arm64
Then, move the file to the directory and change its name to bazel using below command.
sudo mv bazelisk-linux-arm64 /usr/local/bin/bazel
Finally, make sure you get the binary available in $PATH.
which bazel
As you can see that the Bazel integrated to the system successfully.
Thank you for reading our blog post.