[1] Compilation Conditions
MacOS X Release 10.6.6[2] Compilation Procedure
standard Mach Kernel (Darwin 10.6.0)
gcc-4.5.1-4osx10.6
Apple's X11 for MacOS X
CERNLIB-2006
fftw3-3.2.2-10.6hepx1d
Get the source tar ball from ftp://root.cern.ch/root/ and expand it as
$ tar -zxvf <somewhere>/root_v5.30.00.source.tar.gz
then follow the steps below:
$ tar -zxvf <somewhere>/pythia6.tar.gz
$ cd pythia6
$ patch -p1 -s < <somewhere>/pythia6416-gfortran.patch
$ ./makePythia6.macosx
$ mkdir ../root/lib
$ cp -p libPythia6.* ../root/lib
$ cd ../root
$ export ROOTSYS=`pwd`
$ export DYLD_LIBRARY_PATH=$ROOTSYS/lib
$ export PATH=$ROOTSYS/bin:$PATH
$ patch -p1 -s < <somewhere>/root_v5.28.00-macosx10.6.patch
$ ./configure macosx --with-pythia6-libdir=<somewhere>/root/lib --enable-minuit2 --enable-roofit --with-fftw3-incdir=/usr/osxws/include --with-fftw3-libdir=/usr/osxws/lib --enable-gdml
$ make
where <somewhere> stands for a directory into which you downloaded the source tarballs and my private patch for root to compile with gfortran.
[3] Installation of a Precompiled Binary Package
Thanks to Remi Mommsen and the ROOT team, ROOT for MacOS X is now available as a Fink package or as a binary tarball from the official ROOT site.
Alternatively, you can use an RPM package through APT/RPM as
$ su
# apt-get update
# apt-get install root
# apt-get clean
After installing ROOT in either way, make a symbolic link:
# ln -s root_v5.30.00-macosx10.6-<processor> /opt/root/pro
# exit
where <processor> is either i386 or ppc as determined by the processor architecture of your MacOS X box.
Then set some environmental variables:
$ export ROOTSYS=/opt/root/pro
$ export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$ROOTSYS/lib
$ export PATH=$PATH:$ROOTSYS/bin
Now you are ready to use ROOT.