Versions Compared

Key

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

...

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.

Table of Contents

v5.26.00a-gl3

snowleopard-i386-32bit-gcc42

  1. Obtain Fermi's copy of the source from /afs/slac/g/glast/ground/GLAST_EXT/srcExtlibs/root-v5.26.00a-gl3.tar.gz and unpack, it will be dumped into a directory named "root"
  2. Need fftw3, gccxml, GSL to be built.  Obtain FFTW 3.1.2 from GLAST_EXT
    Obtain GSL 1.10 from: http://www.gnu.org/software/gsl; ./configure CFLAGS="-fPIC" --prefix=$PWD  "make"  "make install"
    obtain gccxml 0.9.0_20090601 from http://lcgsoft.cern.ch/index.py?page=pkg_version&pkg=gccxml&vers=0.9.0_20090601 require cmake to build: http://www.cmake.org/cmake/resources/software.html
    mkdir gccxml-build
    cd gccxml-build
    cmake -DCMAKE_INSTALL_PREFIX:PATH=$PWD ../gccxml  (where gccxml contains the downloaded source)
    make
    make install
  3. setup your environment, where we have cd'd into the root directory created when the source was unpacked:
    setenv GLAST_EXT /afs/slac/g/glast/ground/GLAST_EXT/snowleopard-i386-32bit-gcc42/
    setenv ROOTSYS $PWD
    setenv LD_LIBRARY_PATH ${ROOTSYS}/lib:${ROOTSYS}/lib/root
    setenv PATH            ${GLAST_EXT}/python/2.6.5/gcc40/bin:/bin:/sbin:/usr/b
    in:/usr/sbin:@sys/usr/bin:${ROOTSYS}/bin
    setenv PYTHONHOME ${GLAST_EXT}/python/2.6.5/gcc40/lib/python2.6
    setenv PYTHONPATH ${PYTHONHOME}:${ROOTSYS}/bin:${ROOTSYS}/lib
    setenv DYLD_LIBRARY_PATH ${ROOTSYS}/lib
  4. Run configure:
    ./configure --disable-mysql --enable-python --with-python-incdir=$GLAST_EXT/python/2.6.5/gcc40/include/python2.6 --with-python-libdir=$GLAST_EXT/python/2.6.5/gcc40/lib/python2.6/config --enable-roofit --disable-odbc --enable-minuit2 --enable-unuran --enable-table --enable-explicitlink --with-gccxml=$GLAST_EXT/ROOT/gccxml/gccxml-build/bin --enable-gdml --enable-genvector --enable-mathcore --enable-mathmore --with-gsl-incdir=$GLAST_EXT/ROOT/gsl-1.10/include --with-gsl-libdir=$GLAST_EXT/ROOT/gsl-1.10/lib --with-fftw3-incdir=$GLAST_EXT/fftw/3.1.2/gcc40/include/fftw --with-fftw3-libdir=$GLAST_EXT/fftw/3.1.2/gcc40/lib > & config-snowleopard.log &
  1. Build by running "make >& build-snowleopard.log &"
  2. libPyROOT.dylib must be rebuilt, due to a need to make it a "bundle" rather than "shared library":
    cd into pyroot/src directory and do:
    g++ -flat_namespace -bundle *.o -bundle_loader $GLAST_EXT/python/2.5.1-g3/gcc40/bin/python -L$ROOTSYS/lib -ldl -lCore -lCint -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lTree -lMatrix -lMathCore -lThread -lReflex -L$GLAST_EXT/python/2.5.1-gl3/gcc40/lib/python2.5/config -lpython2.5 -o libPyROOT.dylib
    See:  https://savannah.cern.ch/bugs/index.php?22003
  3. The *.dylib files will have their references to other ROOT libraries hard-coded.  This must be fixed before the libraries can be distributed.  Both the ids and the ROOT libraries referenced must be updated.
    1. First check the id and references using:
      otool -L name.dylib.  i.e.  otool -L libCint.dylib
    2. Next update the id using the command: 
      install_name_tool -id newID fileName  i.e. install_name_tool -id libCint.dylib libCint.dylib
    3. For any ROOT libraries referenced do: 
      install_name_tool -change oldName newName fileName  i.e install_name_tool -change $ROOTSYS/lib/libNet.dylib libNet.dylib libPyROOT.dylib
  4. Update etc/system.rootrc to include the lines:
    # As suggested by Wilko, April, 2009, so that when a job writes to xrootd, missing directories are created upon request.
    XNet.Mkpath: 1
  5. Copy the following into $GLAST_EXT using the directory structure:
    ROOT/v5.26.00a-gl2/gcc42/
    README bin build-tiger.log cint config-tiger.log doc etc fonts icons include lib macros man test tutorials

v5.26.00a-gl2

Patch to TMVA's Reader.cxx included in v5.26.00b

...

  1. Build by running "make >& build-tiger.log &"
  2. libPyROOT.dylib must be rebuilt, due to a need to make it a "bundle" rather than "shared library":
    cd into pyroot/src directory and do:
    g++ -flat_namespace -bundle *.o -bundle_loader $GLAST_EXT/python/2.5.1-g3/gcc40/bin/python -L$ROOTSYS/lib -ldl -lCore -lCint -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lTree -lMatrix -lMathCore -lThread -lReflex -L$GLAST_EXT/python/2.5.1-gl3/gcc40/lib/python2.5/config -lpython2.5 -o libPyROOT.dylib
    See:  https://savannah.cern.ch/bugs/index.php?22003
  3. The *.dylib files will have their references to other ROOT libraries hard-coded.  This must be fixed before the libraries can be distributed.  Both the ids and the ROOT libraries referenced must be updated.
    1. First check the id and references using:
      otool -L name.dylib.  i.e.  otool -L libCint.dylib
    2. Next update the id using the command: 
      install_name_tool -id newID fileName  i.e. install_name_tool -id libCint.dylib libCint.dylib
    3. For any ROOT libraries referenced do: 
      install_name_tool -change oldName newName fileName  i.e install_name_tool -change $ROOTSYS/lib/libNet.dylib libNet.dylib libPyROOT.dylib
  4. Update etc/system.rootrc to include the lines:
    # As suggested by Wilko, April, 2009, so that when a job writes to xrootd, missing directories are created upon request.
    XNet.Mkpath: 1
  5. Copy the following into $GLAST_EXT using the directory structure:
    ROOT/v5.26.00a-gl2/gcc40/
    README bin build-tiger.log cint config-tiger.log doc etc fonts icons include lib macros man test tutorials

snowleopard-i386-32bit-gcc42

  1. Obtain Fermi's copy of the source from /afs/slac/g/glast/ground/GLAST_EXT/srcExtlibs/root-v5.26.00a-gl2.tar.gz and unpack, it will be dumped into a directory named "root"
  2. setup your environment, where we have cd'd into the root directory created when the source was unpacked:
    setenv GLAST_EXT /afs/slac/g/glast/ground/GLAST_EXT/snowleopard-i386-32bit-gcc42/
    setenv ROOTSYS $PWD
    setenv LD_LIBRARY_PATH ${ROOTSYS}/lib:${ROOTSYS}/lib/root
    setenv PATH            ${GLAST_EXT}/python/2.6.5/gcc40/bin:/bin:/sbin:/usr/b
    in:/usr/sbin:@sys/usr/bin:${ROOTSYS}/bin
    setenv PYTHONHOME ${GLAST_EXT}/python/2.6.5/gcc40/lib/python2.56
    setenv PYTHONPATH ${PYTHONHOME}:${ROOTSYS}/bin:${ROOTSYS}/lib
    setenv DYLD_LIBRARY_PATH ${ROOTSYS}/lib
  3. Run configure:
    ./configure --disable-mysql --enable-python --with-python-incdir=$GLAST_EXT/python/2.6.5/gcc40/include/python2.5 6 --with-python-libdir=$GLAST_EXT/python/2.6.5/gcc40/lib/python2.6/config --enable-roofit --disable-odbc --enable-minuit2 --enable-unuran --enable-table --enable-explicitlink --with-gccxml=$GLAST_EXT/ROOT/gccxml/gccxml-build/bin --enable-gdml --enable-genvector --enable-mathcore --enable-mathmore --with-gsl-incdir=$GLAST_EXT/ROOT/gsl-1.10/include --with-gsl-libdir=$GLAST_EXT/ROOT/gsl-1.10/lib --with-fftw3-incdir=$GLAST_EXT/fftw/3.1.2/gcc40/include/fftw --with-fftw3-libdir=$GLAST_EXT/fftw/3.1.2/gcc40/lib > & config-snowleopard.log &

...