It’s up to you to decide where you want to keep your ROOT installations.
Here are some old posts with examples of different building procedures:
The easiest way would be to build ROOT “in-place” (in case anything goes wrong you’ll have additional “configure.out.txt” and “make.out.txt” files to look into):
rm -rf v5-34-00-patches
git clone -b v5-34-00-patches http://root.cern.ch/git/root.git v5-34-00-patches
cd v5-34-00-patches
unset ROOTSYS
./configure --enable-soversion --all > configure.out.txt 2>&1
make > make.out.txt 2>&1
On some newer operating systems, you may need to add “--enable-gsl-shared --disable-fitsio” into the “co…
Try the following procedure (in case anything goes wrong you’ll have additional “configure.out.txt” and “make.out.txt” files to look into): [code]#
make sure we have a clean source code
cd /srv/opt/root
rm -f root
rm -rf root_v5.34.20
wget ftp://root.cern.ch/root/root_v5.34.20.source.tar.gz
tar -zxf root_v5.34.20.source.tar.gz
mv root root_v5.34.20
make sure really NOTHING in the environment points to ANY old ROOT version
cd /srv/opt/root
rm -f root
unset ROOTSYS
if [ -e “${HOME}/.r…
Try in [t]csh (build it in “/tmp/ROOT/root”, install it into “/usr/physics/root_v5.34.32”) … cd /tmp
sudo rm -rf ROOT
mkdir ROOT
cd ROOT
wget ftp://root.cern.ch/root/root_v5.34.32.source.tar.gz
tar -zxf root_v5.34.32.source.tar.gz
cd root
setenv ROOTSYS /usr/physics/root_v5.34.32
sudo rm -rf ${ROOTSYS}
./configure --enable-soversion --all
make
sudo ROOTSYS=${ROOTSYS} make install
cd /tmp
rm -rf ROOT If you have “libpythia8-dev” package installed, add “–with-pythia8-incdir=/usr/include/Pythia8” t…
Try (build it in “/tmp/ROOT/root”, install it into “/opt/ROOT/v5-34-00-patches”) … cd /tmp
rm -rf ROOT
mkdir ROOT
cd ROOT
svn co http://root.cern.ch/svn/root/branches/v5-34-00-patches root
cd root
export ROOTSYS=/opt/ROOT/v5-34-00-patches
rm -rf ${ROOTSYS}
./configure --enable-explicitlink --enable-soversion --all
make
make install
cd /tmp
rm -rf ROOT Then … cd
source /opt/ROOT/v5-34-00-patches/bin/thisroot.sh
root
P.S. Note that you must first get rid of the “system-provided” ROOT version → execute “sudo apt-get purge root-system* root-plugin* libroot*” (afterwards check that the “/usr/lib/i386-linux-gnu/root5.34” and the “/usr/lib/x86_64-linux-gnu/root5.34” subdirectories disappeared completely).