Rate This Document
Findability
Accuracy
Completeness
Readability

Compiling and Installing ROOT

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Run the following command to go to the main program installation directory:
    cd /path/to/ROOT
  3. Run the following commands to decompress the ROOT installation package:
    tar -xzvf root_v6.20.00.source.tar.gz
  4. Run the following command to switch to the directory generated after the package is decompressed:
    cd root-6.20.00
  5. Run the following command to create and access the directory for compiling the ROOT software:
    mkdir obj
    cd obj
  6. Ensure that the server is connected to the Internet and run the following commands to compile and install the software:
    cmake ../ -DCMAKE_INSTALL_PREFIX=/opt/xrootd -DENABLE_PERL=FALSE
    make -j16
    make install
  7. Run the following command to add the environment variables:
    source ./bin/thisroot.sh