...
ROOT is available here /afs/slac/g/glast/ground/GLAST_EXT/redhat4-i686-32bit/ROOT/root-v5.20.00-gl1.src.tg
1. Extract contents of root-v5.20.00-gl1.src.tgz to a temporary directory
2. set ROOTSYS to the `root' directory
Panel |
---|
...
|
3. Add $ROOTSYS/bin to PATH and $ROOTSYS/lib to LD_LIBRARY_PATH
Code Block |
---|
setenv PATH ${ROOTSYS}/bin:${PATH} setenv DYLD_LIBRARY_PATH ${ROOTSYS}/lib:${DYLD_LIBRARY_PATH} |
3) 4. Now type the build commands, with the following parameters:
Code Block |
---|
configure macosx --fail-on-missing --disable-mysql --enable-xrootd --with-python-incdir=/afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/tiger-i386-32bit/python/2.5.1-gl1/gcc40/include/python2.5/ --with-python-libdir=/afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/tiger-i386-32bit/python/2.5.1-gl1/gcc40/lib/python2.5/config/ --enable-reflex --enable-cintex --enable-roofit --disable-odbc --enable-minuit2 --enable-unuran --enable-table --enable-explicitlink --enable-python make |
5. Ignore the following errors:
Code Block |
---|
Error: string() declared but not defined prec_stl/vector:422: Error: string() declared but not defined prec_stl/list:187: ./configure: line 1: freetype-config: command not found |
Panel |
---|
|
7. set PYTHONSYS to the 'python' directory that you are building ROOT against
8. Enter the following
...
commands
Panel |
---|
* Note |
...
: In the command, notice the "- |
...
lpython2.5." |
...
Make sure |
...
you specify the "pythonA.B" library name corresponding to the version of which you set PYTHONSYS to. |
Code Block |
---|
g++ -flat_namespace -bundle *.o -bundle_loader $PYTHONSYS/bin/python -L$ROOTSYS/lib -ldl -L$ROOTSYS/lib -lCore -lCint -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lTree -lMatrix -lMathCore -lThread -L$ROOTSYS/lib -lReflex -ldl -L$PYTHONSYS/lib/python2.5/config/ -lpython2.5 -L$ROOTSYS/lib -lCore -lCint -o libPyROOT.so
cp libPyROOT.so $ROOTSYS/lib/
|