Compiling and Installing ROOT
Procedure
- Use PuTTY to log in to the server as the root user.
- Run the following command to go to the main program installation directory:
cd /path/to/ROOT
- Run the following commands to decompress the ROOT installation package:
tar -xzvf root_v6.20.00.source.tar.gz
- Run the following command to switch to the directory generated after the package is decompressed:
cd root-6.20.00
- Run the following command to create and access the directory for compiling the ROOT software:
mkdir obj cd obj
- 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
- Run the following command to add the environment variables:
source ./bin/thisroot.sh
Parent topic: ROOT 6.20 Porting Guide (CentOS 7.6)