Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Requirements

Please make sure to follow the instructions for compiling python prior to building ROOT since ROOT needs to be built against python.  ROOT may also be built against MySQL on the linuxes.  Also note that often the version of the source we utilize for ROOT is Fermi-specific where patches have been applied or the version of ROOT is from a branch from their Subversion repository.

...

v5.20.00-gl5

...

We

...

ran

...

into

...

a

...

problem

...

this

...

time

...

with

...

distribution

...

of

...

our

...

linux

...

build

...

for

...

ROOT.

...

  It

...

seems

...

prefix

...

cannot

...

be

...

used,

...

so

...

we

...

must

...

set

...

the

...

ROOTSYS

...

env

...

var

...

for

...

our

...

build.

...

  make

...

install

...

no

...

longer

...

seems

...

to

...

work

...

unless

...

prefix

...

is

...

used,

...

so

...

we

...

are

...

left

...

to

...

prune

...

the

...

resulting

...

ROOT

...

build

...

directories

...

on

...

our

...

own.

...

redhat3-i686-32bit-gcc32

...

  1. Obtain

...

  1. Fermi's

...

  1. copy

...

  1. of

...

  1. the

...

  1. source

...

  1. from

...

  1. /afs/slac/g/glast/ground/GLAST_EXT/srcExtlibs/root-v5.20.00-gl5.tar.gz

...

  1. and

...

  1. unpack,

...

  1. it

...

  1. will

...

  1. be

...

  1. dumped

...

  1. into

...

  1. a

...

  1. directory

...

  1. named

...

  1. "root"

...

  1. set

...

  1. ROOTSYS

...

  1. to

...

  1. the

...

  1. same

...

  1. directory

...

  1. as

...

  1. the

...

  1. source

...

  1. was

...

  1. checked

...

  1. out

...

  1. into.

...

  1.   cd

...

  1. into

...

  1. the

...

  1. root

...

  1. directory

...

  1. Run

...

  1. configure:

...


  1. ./configure

...

  1. linux

...

  1. --fail-on-missing

...

  1. --enable-mysql

...

  1. --with-mysql-incdir=/afs/slac/g/glast/ground/GLAST_EXT/redhat3-i686-32bit-gcc32/mysql/4.1.18/gcc32/include/mysql

...

  1. --with-mysql-libdir=/afs/slac/g/glast/ground/GLAST_EXT/redhat3-i686-32bit-gcc32/mysql/4.1.18/gcc32/lib/mysql

...

  1. --enable-xrootd

...

  1. --enable-python

...

  1. --with-python-incdir=/afs/slac/g/glast/ground/GLAST_EXT/redhat3-i686-32bit-gcc32/python/2.5.1-gl1/gcc32/include/python2.5

...

  1. --with-python-libdir=/afs/slac/g/glast/ground/GLAST_EXT/redhat3-i686-32bit-gcc32/python/2.5.1-gl1/gcc32/lib/python2.5/config

...

  1. --enable-reflex

...

  1. --enable-cintex

...

  1. --enable-roofit

...

  1. --with-oracle-incdir=/usr/oracle/rdbms/public

...

  1. --with-oracle-libdir=/usr/oracle/lib

...

  1. --enable-minuit2

...

  1. --enable-unuran

...

  1. --enable-table

...

  1. --enable-explicitlink

...

  1. >

...

  1. &

...

  1. config-rhel3.log

...

  1. &

...

  1. Build

...

  1. by

...

  1. running

...

  1. "make

...

  1. >&

...

  1. build-rhel3.log

...

  1. &"

...

  1. Update

...

  1. etc/system.rootrc

...

  1. to

...

  1. include

...

  1. the

...

  1. lines:

...


  1. #

...

  1. As

...

  1. suggested

...

  1. by

...

  1. Wilko,

...

  1. April,

...

  1. 2009,

...

  1. so

...

  1. that

...

  1. when

...

  1. a

...

  1. job

...

  1. writes

...

  1. to

...

  1. xrootd,

...

  1. missing

...

  1. directories

...

  1. are

...

  1. created

...

  1. upon

...

  1. request.

...


  1. XNet.Mkpath:

...

  1. 1

...

  1. Copy

...

  1. the

...

  1. following

...

  1. into

...

  1. $GLAST_EXT

...

  1. using

...

  1. the

...

  1. directory

...

  1. structure:

...


  1. ROOT/v5.20.00-gl4/gcc32/

...


  1. README

...

  1. bin

...

  1. build-rhel3.log

...

  1. cint

...

  1. config-rhel3.log

...

  1. doc

...

  1. etc

...

  1. fonts

...

  1. icons

...

  1. include

...

  1. lib

...

  1. macros

...

  1. man

...

  1. test

...

  1. tutorials

...

redhat4-i686-32bit-gcc34

...

  1. Obtain

...

  1. Fermi's

...

  1. copy

...

  1. of

...

  1. the

...

  1. source

...

  1. from

...

  1. /afs/slac/g/glast/ground/GLAST_EXT/srcExtlibs/root-v5.20.00-gl5.tar.gz

...

  1. and

...

  1. unpack,

...

  1. it

...

  1. will

...

  1. be

...

  1. dumped

...

  1. into

...

  1. a

...

  1. directory

...

  1. named

...

  1. "root"

...

  1. set

...

  1. ROOTSYS

...

  1. to

...

  1. the

...

  1. same

...

  1. directory

...

  1. as

...

  1. the

...

  1. source

...

  1. was

...

  1. checked

...

  1. out

...

  1. into.

...

  1.   cd

...

  1. into

...

  1. the

...

  1. root

...

  1. directory

...

  1. Run

...

  1. configure:

...


  1. ./configure

...

  1. linux

...

  1. --fail-on-missing

...

  1. --enable-mysql

...

  1. --with-mysql-incdir=/afs/slac/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/mysql/4.1.18/gcc34/include/mysql

...

  1. --with-mysql-libdir=/afs/slac/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/mysql/4.1.18/gcc34/lib/mysql

...

  1. --enable-xrootd

...

  1. --enable-python

...

  1. --with-python-incdir=/afs/slac/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python/2.5.1-gl1/gcc34/include/python2.5

...

  1. --with-python-libdir=/afs/slac/g/glast/ground/GLAST_EXT/redhat4-i686-32bit-gcc34/python/2.5.1-gl1/gcc34/lib/python2.5/config

...

  1. --enable-reflex

...

  1. --enable-cintex

...

  1. --enable-roofit

...

  1. --with-oracle-incdir=/usr/oracle/rdbms/public

...

  1. --with-oracle-libdir=/usr/oracle/lib

...

  1. --enable-minuit2

...

  1. --enable-unuran

...

  1. --enable-table

...

  1. --enable-explicitlink

...

  1. >

...

  1. &

...

  1. config-rhel4.log

...

  1. &

...

  1. Build

...

  1. by

...

  1. running

...

  1. "make

...

  1. >&

...

  1. build-rhel4.log

...

  1. &"

...

  1. Update

...

  1. etc/system.rootrc

...

  1. to

...

  1. include

...

  1. the

...

  1. lines:

...


  1. #

...

  1. As

...

  1. suggested

...

  1. by

...

  1. Wilko,

...

  1. April,

...

  1. 2009,

...

  1. so

...

  1. that

...

  1. when

...

  1. a

...

  1. job

...

  1. writes

...

  1. to

...

  1. xrootd,

...

  1. missing

...

  1. directories

...

  1. are

...

  1. created

...

  1. upon

...

  1. request.

...


  1. XNet.Mkpath:

...

  1. 1

...

  1. Copy

...

  1. the

...

  1. following

...

  1. into

...

  1. $GLAST_EXT

...

  1. using

...

  1. the

...

  1. directory

...

  1. structure:

...


  1. ROOT/v5.20.00-gl4/gcc34/

...


  1. README

...

  1. bin

...

  1. build-rhel4.log

...

  1. cint

...

  1. config-rhel4.log

...

  1. doc

...

  1. etc

...

  1. fonts

...

  1. icons

...

  1. include

...

  1. lib

...

  1. macros

...

  1. man

...

  1. test

...

  1. tutorials

...

tiger-i386-32bit-gcc40

...

  1. Obtain

...

  1. Fermi's

...

  1. copy

...

  1. of

...

  1. the

...

  1. source

...

  1. from

...

  1. /afs/slac/g/glast/ground/GLAST_EXT/srcExtlibs/root-v5.20.00-gl5.tar.gz

...

  1. and

...

  1. unpack,

...

  1. it

...

  1. will

...

  1. be

...

  1. dumped

...

  1. into

...

  1. a

...

  1. directory

...

  1. named

...

  1. "root"

...

  1. setup

...

  1. your

...

  1. environment,

...

  1. where

...

  1. we

...

  1. have

...

  1. cd'd

...

  1. into

...

  1. the

...

  1. root

...

  1. directory

...

  1. created

...

  1. when

...

  1. the

...

  1. source

...

  1. was

...

  1. unpacked:

...


  1. setenv

...

  1. GLAST_EXT

...

  1. /afs/slac/g/glast/ground/GLAST_EXT/tiger-i386-32bit-gcc40/

...


  1. setenv

...

  1. ROOTSYS

...

  1. $PWD

...


  1. setenv

...

  1. LD_LIBRARY_PATH

...

  1. ${ROOTSYS}/lib:${ROOTSYS}/lib/root

...


  1. setenv PATH            ${GLAST_EXT}/python/2.5.1-gl3/gcc40/bin:/bin:/sbin:/usr/b

...


  1. in:/usr/sbin:@sys/usr/bin:${ROOTSYS}/bin

...


  1. setenv

...

  1. PYTHONHOME

...

  1. ${GLAST_EXT}/python/2.5.1-gl3/gcc40/lib/python2.5

...


  1. setenv

...

  1. PYTHONPATH

...

  1. ${PYTHONHOME}:${ROOTSYS}/bin:${ROOTSYS}/lib

...


  1. setenv

...

  1. DYLD_LIBRARY_PATH

...

  1. ${ROOTSYS}/lib

...

  1. Run

...

  1. configure:

...


  1. ./configure

...

  1. --disable-mysql

...

  1. --enable-python

...

  1. --with-python-incdir=/afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/tiger-i386-32bit-gcc40/python/2.5.1-gl3/gcc40/include/python2.5

...

  1. --with-python-libdir=/afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/tiger-i386-32bit-gcc40/python/2.5.1-gl3/gcc40/lib/python2.5/config

...

  1. --enable-roofit

...

  1. --disable-odbc

...

  1. --enable-minuit2

...

  1. --enable-unuran

...

  1. --enable-table

...

  1. --enable-explicitlink

...

  1. >&

...

  1. config-tiger.log

...

  1. &

...

  1. Build

...

  1. by

...

  1. running

...

  1. "make

...

  1. >&

...

  1. build-tiger.log

...

  1. &"

...

  1. libPyROOT.dylib

...

  1. must

...

  1. be

...

  1. rebuilt,

...

  1. due

...

  1. to

...

  1. a

...

  1. need

...

  1. to

...

  1. make

...

  1. it

...

  1. a

...

  1. "bundle"

...

  1. rather

...

  1. than

...

  1. "shared

...

  1. library":

...


  1. cd

...

  1. into

...

  1. pyroot/src

...

  1. directory

...

  1. and

...

  1. do:

...


  1. g+

...

  1. +

...

  1. -flat_namespace

...

  1. -bundle

...

  1. *.o

...

  1. -bundle_loader

...

  1. $GLAST_EXT/python/2.5.1-g3/gcc40/bin/python

...

  1. -L$ROOTSYS/lib

...

  1. -ldl

...

  1. -lCore

...

  1. -lCint

...

  1. -lRIO

...

  1. -lNet

...

  1. -lHist

...

  1. -lGraf

...

  1. -lGraf3d

...

  1. -lGpad

...

  1. -lTree

...

  1. -lMatrix

...

  1. -lMathCore

...

  1. -lThread

...

  1. -lReflex

...

  1. -L$GLAST_EXT/python/2.5.1-gl3/gcc40/lib/python2.5/config

...

  1. -lpython2.5

...

  1. -o

...

  1. libPyROOT.dylib

...


  1. See:

...

  1.   https://savannah.cern.ch/bugs/index.php?22003

...

  1. The *.dylib

...

  1. files

...

  1. will

...

  1. have

...

  1. their

...

  1. references

...

  1. to

...

  1. other

...

  1. ROOT

...

  1. libraries

...

  1. hard-coded.

...

  1.   This

...

  1. must

...

  1. be

...

  1. fixed

...

  1. before

...

  1. the

...

  1. libraries

...

  1. can

...

  1. be

...

  1. distributed.

...

  1.   Both

...

  1. the

...

  1. ids

...

  1. and

...

  1. the

...

  1. ROOT

...

  1. libraries

...

  1. referenced

...

  1. must

...

  1. be

...

  1. updated.

...

    1. First

...

    1. check

...

    1. the

...

    1. id

...

    1. and

...

    1. references

...

    1. using:

...


    1. otool

...

    1. -L

...

    1. name.dylib.

...

    1.   i.e.

...

    1.   otool -L

...

    1. libCint.dylib

...

    1. Next

...

    1. update

...

    1. the

...

    1. id

...

    1. using

...

    1. the

...

    1. command:

...

    1.  
      install_name_tool

...

    1. -id

...

    1. newID fileName  i.e.

...

    1. install_name_tool

...

    1. -id

...

    1. libCint.dylib

...

    1. libCint.dylib

...

    1. For

...

    1. any

...

    1. ROOT

...

    1. libraries

...

    1. referenced

...

    1. do:

...

    1.  
      install_name_tool

...

    1. -change

...

    1. oldName

...

    1. newName fileName  i.e

...

    1. install_name_tool

...

    1. -change

...

    1. $ROOTSYS/lib/libNet.dylib

...

    1. libNet.dylib

...

    1. libPyROOT.dylib

...

  1. Update

...

  1. etc/system.rootrc

...

  1. to

...

  1. include

...

  1. the

...

  1. lines:

...


  1. #

...

  1. As

...

  1. suggested

...

  1. by

...

  1. Wilko,

...

  1. April,

...

  1. 2009,

...

  1. so

...

  1. that

...

  1. when

...

  1. a

...

  1. job

...

  1. writes

...

  1. to

...

  1. xrootd,

...

  1. missing

...

  1. directories

...

  1. are

...

  1. created

...

  1. upon

...

  1. request.

...


  1. XNet.Mkpath:

...

  1. 1

...

  1. Copy

...

  1. the

...

  1. following

...

  1. into

...

  1. $GLAST_EXT

...

  1. using

...

  1. the

...

  1. directory

...

  1. structure:

...


  1. ROOT/v5.20.00-gl4/gcc40/

...


  1. README

...

  1. bin

...

  1. build-tiger.log

...

  1. cint

...

  1. config-tiger.log

...

  1. doc

...

  1. etc

...

  1. fonts

...

  1. icons

...

  1. include

...

  1. lib

...

  1. macros

...

  1. man

...

  1. test

...

  1. tutorials