Installing Bazel
Procedure
- Use PuTTY to log in to the server as the root user.
- Install the Bazel dependencies.
yum -y install build-essential openjdk-8-jdk python zip unzip gcc python-pip libhdf5-serial-dev git pkg-config pip install numpy future keras_preprocessing mock Cython
- Decompress, install, and compile Bazel.
mkdir bazel unzip bazel-0.26.0-dist.zip -d bazel cd bazel EXTRA_BAZEL_ARGS='--host_javabase=@local_jdk//:jdk' ./compile.sh
- Create a soft link.
ln -s ${bazel root directory}/output/bazel /usr/bin/bazel - Perform the verification.
bazel --version
If the correct version is displayed, the installation is successful.
Parent topic: Configuring the Compilation Environment