Tags:
create new tag
view all tags

Installing ROOT

ROOT installations are located in /swshare/ROOT, which also contains the init files linked to the latest installed version.

Installations are performed as cmssgm on:

  • SL5 UIs t3ui0[2-9]
  • SL6 UIs t3ui[11-20]

Step by step instructions

  • Download the latest version from here: http://root.cern.ch/drupal/content/downloading-root. Save it in /scratch/cmssgm.
  • untar it
  • Copy and modify the standard cfg options from here: /swshare/ROOT/ROOT_configuration, into the root/ directory created by the untar
    • You should at least modify the --prefix and --etcdir settings
  • From the /scratch/cmssgm/root/ directory, run ./configure `cat ROOT_configuration`
  • make && make install
  • Copy back ROOT_configuration to the new ROOT directory, e.g. /swshare/ROOT/root_v5.32.00_slc5_amd64/
  • Update /swshare/ROOT/thisroot.(c)sh
  • Send an email to cms-tier3-users@lists.psi.ch

ROOT + Python2.6 + Pythia6 on SL5 NEW

Be aware that this link was needed to point to Python2.6 on SL5 ( default is Python2.4 ):
[cmssgm@t3ui02 root]$ ll /usr/lib64/python2.6/config/libpython2.6.so
lrwxrwxrwx 1 root root 21 Jul 13 21:01 /usr/lib64/python2.6/config/libpython2.6.so -> ../../libpython2.6.so
Either by editing /swshare/ROOT/ROOT_configuration or by directly calling ./configure you have to provide the following extra options ( all as one line ):
./configure linuxx8664gcc 
  --enable-builtin-pcre 
  --enable-builtin-freetype 
  --enable-builtin-ftgl 
  --enable-cintex 
  --enable-dcache 
  --enable-explicitlink 
  --enable-gdml 
  --enable-genvector 
  --enable-krb5 
  --enable-mathmore 
  --enable-minuit2 
  --enable-mysql 
  --enable-python 
  --enable-qt 
  --enable-qtgsi 
  --enable-reflex 
  --enable-roofit 
  --enable-table 
  --enable-unuran 
  --enable-pythia6 
  --with-pythia6-libdir=/swshare/ROOT/pythia6/ 
  --with-python-incdir=/usr/include/python2.6 
  --with-python-libdir=/usr/lib64/python2.6/config/ 
  --prefix=/swshare/ROOT/root_v5.34.18_slc5_amd64_py26_pythia6 
  --etcdir=/swshare/ROOT/root_v5.34.18_slc5_amd64_py26_pythia6/etc
then you create this link:
[cmssgm@t3ui02 root]$ pwd
/swshare/ROOT/root_v5.34.18_slc5_amd64_py26_pythia6/lib/root
[cmssgm@t3ui11 root]$ ll libPythia6.so
lrwxrwxrwx 1 root root 35 Jul 12 22:08 libPythia6.so -> /swshare/ROOT/pythia6/libPythia6.so

Examples

  • Example of installation, as cmssgm:
cd /scratch/cmssgm
wget ftp://root.cern.ch/root/root_v5.32.00.source.tar.gz
tar xvzf root_v5.32.00.source.tar.gz
cd root
cp /swshare/ROOT/ROOT_configuration .
emacs -nw ROOT_configuration
./configure `cat ROOT_configuration`
make
make install
cp ROOT_configuration  /swshare/ROOT/root_v5.32.00_slc5_amd64/
cd /swshare/ROOT
emacs -nw thisroot.sh
emacs -nw thisroot.csh

  • Example of ROOT_configuration
linuxx8664gcc
--enable-builtin-pcre
--enable-builtin-freetype
--enable-builtin-ftgl
--enable-cintex
--enable-dcache
--enable-explicitlink
--enable-gdml
--enable-genvector
--enable-krb5
--enable-mathmore
--enable-minuit2
--enable-mysql
--enable-python
--enable-qt
--enable-qtgsi
--enable-reflex
--enable-roofit
--enable-table
--enable-unuran
--prefix=/swshare/ROOT/root_v5.32.00_slc5_amd64/
--etcdir=/swshare/ROOT/root_v5.32.00_slc5_amd64/etc

Details

Debug Versions

to build a debug version add the following line

--build=debug

make sure to set different prefix and etcdir variables!

Xrootd Issues

If you install on a machine with a new Xrootd version make sure that xrootd-private-devel is installed and add the following lines

--with-xrootd-incdir /usr/include/xrootd/
--with-xrootd-incdir /usr/include/xrootd/private/

preview versions

same procedure as above but get the code with

git clone http://root.cern.ch/git/root.git root6
cd root6
git tag -l
git checkout -b <tag> <tag>

ROOT6

remove

--with-reflex
and
--with-cintex
from configuration file

need package

python26-devel.x86_64

use more up to date compiler versions with

scl enable devtoolset-1.1 bash

and the following hacks

export PYTHON=/usr/bin/python26
mkdir bin && ln -s /usr/bin/python26 ./bin/python
export PATH=./bin/:$PATH

Known Bugs (beta1)

Known Bugs (beta2 - v5-99-05)

-- DanielMeister - 2012-11-26

Edit | Attach | Watch | Print version | History: r11 < r10 < r9 < r8 < r7 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r11 - 2014-07-16 - FabioMartinelli
 
This site is powered by the TWiki collaboration platform Powered by Perl This site is powered by the TWiki collaboration platformCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback