Rate This Document
Findability
Accuracy
Completeness
Readability

Installing Bazel

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. 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
  3. 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
  4. Create a soft link.
    ln -s ${bazel root directory}/output/bazel /usr/bin/bazel
  5. Perform the verification.
    bazel --version

    If the correct version is displayed, the installation is successful.