CompileAndInstallRoot
Jump to navigation
Jump to search
Architecture 64bit
Getting the source code
- Connect to m1 as root and download
cd /user/cmssoft/ mkdir root_5.32.00 cd root_5.32.00 wget ftp://root.cern.ch/root/root_v5.32.00.source.tar.gz cd .. chown -R srugovac.localusers root_5.32.00/
Compiling the code
- Connect on m2 as a srugovac
cd /user/cmssoft/root_5.32.00 ./configure --enable-dcache --enable-roofit --enable-minuit2 --enable-mathmore --enable-asimage make
Extra steps
- copy the libDCache files from the software area:
cp /sandbox/cmss/slc5_amd64_gcc434/lcg/root/5.30.02-cms6/lib/libDCache.* /user/cmssoft/root_5.30.02/root/lib/
Make sure it is coming from the same ROOT version here is 5.30.02 .
- tell users to adapt there LD_LIBRARY_PATH in the following way:
- with bash
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/sandbox/cmss/slc5_amd64_gcc434/cms/cmssw/CMSSW_4_2_8/external/slc5_amd64_gcc434/lib
- with tcsh
setenv LD_LIBRARY_PATH $LD_LIBRARY_PATH:/sandbox/cmss/slc5_amd64_gcc434/cms/cmssw/CMSSW_4_2_8/external/slc5_amd64_gcc434/lib
Architecture 32bit
Getting the source code
- Connect to m1 as root and download
cd /user/cmssoft/ mkdir root_5.32.00 cd root_5.32.00 wget ftp://root.cern.ch/root/root_v5.32.00.source.tar.gz cd .. chown -R srugovac.localusers root_5.32.00/
- Connect to m2 as root and install manually some needed libraries
yum install libXpm-devel.i386 libXpm-devel.i386 libXft-devel.i386 libXext-devel.i386 freetype-devel.i386 libjpeg-devel.i386 yum install libpng-devel-1.2.10-7.1.el5_3.2.i386
Newer versions of ROOT might need also other development libraries. If it is the case, ./configure will complain for missing libraries.
Compiling the code
- Still in m2 as srugovac
cd /user/cmssoft/root_5.32.00 ./configure linux --enable-dcache --enable-roofit --enable-minuit2 --enable-mathmore --enable-asimage make