root-config

Note that root now has a utility root-config, which will tell you about the root installation. You can check the options used in compiling the binary distributions of root...

$ source /cern/root/v5.08.00/rootsetup.sh
$ root-config --version
5.08/00
$ root-config --config
linux --enable-mathcore --enable-mathmore --enable-reflex --enable-cintex --enable-roofit --enable-minuit2
--enable-table --enable-qt --enable-ruby --enable-python
--with-python-incdir=/afs/cern.ch/sw/root/python/rh73/Python-2.3.4/include/python2.3
--with-python-libdir=/afs/cern.ch/sw/root/python/rh73/Python-2.3.4
--with-pythia6-libdir=/afs/cern.ch/user/b/brun/w0/rootslc3i386/pythia6
--with-cern-libdir=/afs/cern.ch/sw/packages/cern/2003/cel3-i386_gcc323/lib
--with-shift-libdir=/afs/cern.ch/user/b/brun/w0/rootslc3i386/castor-2.0.0/lib
--with-shift-incdir=/afs/cern.ch/user/b/brun/w0/rootslc3i386/castor-2.0.0/h
--with-dcap-libdir=/afs/cern.ch/sw/root/d-cache/dcap/lib
--with-dcap-incdir=/afs/cern.ch/sw/root/d-cache/dcap/include
--with-mysql-libdir=/afs/cern.ch/sw/lcg/external/mysql/4.0.13/rh73_gcc32/lib
--with-mysql-incdir=/afs/cern.ch/sw/lcg/external/mysql/4.0.13/rh73_gcc32/include

Hum, so you can see the downloadable binaries are localized to CERN. I'm not sure what practical implication this has...

Building from source

$ wget ftp://root.cern.ch/root/root_v5.08.00b.source.tar.gz
$ tar -zxf root_v5.08.00b.source.tar.gz
$ cd root
$ export CERNLIB=/cern/cernlib/2004/lib
$ ./configure --help | more
$ ./configure --enable-minuit2
blah blah blah...
Enabled support for asimage, builtin_afterimage, builtin_freetype, builtin_pcre, cern, exceptions, krb5, ldap,
opengl, pgsql, python, minuit2, shadowpw, shared, ssl, thread, xml, xrootd.

$ time make
blah blah blah...

real    20m24.562s
user    18m55.070s
sys     1m10.010s

Building from source to enable Pythia

There are features in ROOT which aren't enabled in the regular binaries available for download from http://root.cern.ch/

Here is an example of building ROOT for use with Pythia libraries.

Get the source

$ wget ftp://root.cern.ch/root/root_v5.08.00b.source.tar.gz
$ wget ftp://root.cern.ch/root/pythia6.tar.gz
$ wget http://www.thep.lu.se/~torbjorn/pythia/pythia6319.f
$ tar -zxf root_v5.08.00b.source.tar.gz
$ tar -zxf pythia6.tar.gz
$ mv pythia6319.f pythia
$ cd pythia6
$ ./makePythia6.linux
$ cd ../root
$ ./configure --enable-mathcore --enable-mathmore --enable-reflex --enable-cintex --enable-roofit --enable-minuit2
--enable-table --enable-qt --with-pythia6-libdir=../pythia6 --with-cern-libdir=/cern/cernlib/2004/lib
blah blah blah...
Enabled support for asimage, builtin_afterimage, builtin_freetype, builtin_pcre, cern, cintex, exceptions, krb5, ldap,
mathcore, mathmore, opengl, pgsql, pythia6, python, reflex, roofit, minuit2, shadowpw, shared, ssl, table, thread,
xml, xrootd.
$ make

-- TomRockwell - 17 Mar 2006
Topic revision: r4 - 16 Oct 2009, TomRockwell
 

This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback