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 some UI

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

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

cd root
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
ln -s /usr/bin/python26 ./bin/python
export PATH=./bin/:$PATH

Known Bugs

-- DanielMeister - 2012-11-26

Edit | Attach | Watch | Print version | History: r11 | r9 < r8 < r7 < r6 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r7 - 2014-01-10 - DanielMeister
 
  • Edit
  • Attach
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