1. Visit root cern homepage
https://root.cern/install/#download-a-pre-compiled-binary-distribution
2. Install allย required dependencies
https://root.cern/install/dependencies/
3. Download the release
Choose Release version Choose pre-compiled Binary distributions on your platfrom or Source distribution
4-1. If you choose pre-compiled Binary distributions
$ cd ~/Download
$ tar -zxvf root_v6.xx.xx.Linux-xxxxxx-x86_64-gcc13.x.tar.gz
$ sudo mv root /usr/local/4-2. If you choose Source distribution
# make install directory
$ sudo mkdir /usr/local/install
# move source file to install directory
$ cd ~/Download
$ sudo mv root_xxxxxx.tar.gz /usr/local/install
# make build directory
$ cd /usr/local/install
$ sudo mkdir root_build
$ sudo tar -zxvf root_xxxxxx.tar.gz
$ sudo mv root root_source
# build
$ cd root_build
$ sudo ccmake ../root_source
# ccmake
CMAKE_INSTALL_PREFIX /usr/local/root
type 'c' for compile
type 'e' for next
type 'g' for generate make file
$ sudo make
$ sudo make install5. Run
$ vi ~/.bashrc
# add in bashrc or bash_profile
source /usr/local/root/bin/thisroot.sh
$ source ~/.bashrc
$ root
# if error occure
"cling::DynamicLibraryManager::loadLibrary(): libtbb.so.2: cannot open shared object file: No such file or directory"
"ImportError: libtbb.so.2: cannot open shared object file: No such file or directory"
# Fedora Centos redhat
$ sudo dnf update
$ sudo dnf install tbb
# Ubuntu Debian
$ sudo apt-get update
$ sudo apt-get install libtbb2