For any question write to : phy.vijayraj@gmail.com
Site: https://root.cern/
Download here: https://root.cern/releases/release-62000/ [Download source code]
Older versions: https://root.cern/install/all_releases/#version-6
UBUNTU Software requirements (<v22) : Copy and paste below lines in your terminal and hit enter
sudo apt-get install dpkg-dev cmake g++ gcc binutils libx11-dev libxpm-dev libxft-dev libxext-dev python libssl-dev gfortran libpcre3-dev xlibmesa-glu-dev libglew1.5-dev libftgl-dev libmysqlclient-dev libfftw3-dev libcfitsio-dev graphviz-dev libavahi-compat-libdnssd-dev libldap2-dev python-dev libxml2-dev libkrb5-dev libgsl0-dev qtwebengine5-dev
mkdir root [create directory where you need to install software say root]
tar root-6.20.00.tar ------------> Source code
cd root-6.20.00 [Enter in the main directory generated after untar]
mkdir rootbuild [This directory is inside the source directory i.e. root-6.20.XXXX]
cd rootbuild
cmake .. [Since we are inside the directory therefore we just need two dots after cmake]
cmake -Dall=On . -----> One can turn off if below standard C++17 cmake command is using. [Test it]
Optional with C++17 :- cmake -DCMAKE_CXX_STANDARD=17 . -------------> This is for compatible features with new Geant4 v11
cmake -DCMAKE_INSTALL_PREFIX=~/myphysics/ROOT_UPGRADED/root-6.20.00-install . [~/path to installation]
make -j4
make install
****You will find new folder inside the main folder with named root-6.20.00-install or the name as described.
****
To run root from anywhere
open new terminal
gedit .bashrc
modify it by adding lines anywhere in the text
source path/2/root/bin/thisroot.sh
alias root='root -l'
run .bashrc file via cmd :- source .bashrc
you are now ready to go and run root anywhere.
Thanks Dr. Canel Eke for noticing errors during installation of root20 on Ubuntu22.
Date: 09/06/2022