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.

Source

How to Install Bazel?