Rate This Document
Findability
Accuracy
Completeness
Readability

Installing the ROOT Tool Package

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Upload the ROOT tool package to the /path/to/SOURCE directory.
  3. Run the following commands to decompress the installation package root_v6.18.00.source.tar.gz:
    cd /path/to/SOURCE
    tar -xvf root_v6.18.00.source.tar.gz
  4. Run the following commands to create a root_build directory in the /path/to/SOURCE directory. ROOT cannot be compiled in the source code.
    mkdir root_build
    cd root_build
    cmake ../root-6.18.00
  5. If the environment is not connected to the Internet, you need to manually download the required installation packages to the corresponding directory. The following installation packages are contained in the ROOT tool package.
    • Save the davix-embedded-0.6.7.tar.gz installation package to the root_build/builtins/davix/DAVIX-prefix/src directory.
    • Save the vdt-0.4.2.tar.gz installation package to the root_build/VDT-prefix/src directory.
    • Save the tbb2019_U1.tar.gz installation package to the root_build/TBBefix/src directory.
  6. Run the following command to modify the CMakeCache.txt file in <root_build>.
    1. Open CMakeCache.txt.
      vi CMakeCache.txt
    2. Press i to enter the insert mode and set clad installation to OFF in the CMakeCache.txt file.
      clad BOLL=OFF
    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  7. Run the following command to perform compilation:
    make -j32
  8. Run the following commands to load environment variables:
    export PATH=/path/to/SOURCE/root_build/bin:$PATH
    export LD_LIBRARY_PATH=/path/to/SOURCE/root_build/lib:$LD_LIBRARY_PATH