Installing the ROOT Tool Package
Procedure
- Use PuTTY to log in to the server as the root user.
- Upload the ROOT tool package to the /path/to/SOURCE directory.
- 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
- 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
- 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.
- Run the following command to modify the CMakeCache.txt file in <root_build>.
- Open CMakeCache.txt.
vi CMakeCache.txt
- Press i to enter the insert mode and set clad installation to OFF in the CMakeCache.txt file.
clad BOLL=OFF
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open CMakeCache.txt.
- Run the following command to perform compilation:
make -j32
- 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
Parent topic: Configuring the Compilation Environment