[1] Compilation Conditions
MacOS X Release 10.8[2] Compilation Procedure
standard Mach Kernel (Darwin 12.5.0)
gcc47-4.7.3-1osx10.8
gsl-1.16-10.8hepx1a
XQuartz's X11 (v.2.7.5) for MacOS X
CERNLIB-2006
pythia-6.424-10.8hepx1a
fftw3-3.3.3-0osx10.8
Get the source tar ball from ftp://root.cern.ch/root/ and expand it as
$ tar -zxvf <somewhere>/root_v5.34.12.source.tar.gz
then follow the steps below:
$ patch -p1 -s < <somewhere>/root_v5.28.00-macosx10.6.patch
$ patch -p1 -s < <somewhere>/root_v5.32.02-noclang.patch
$ ./configure --with-pythia6-libdir=/opt/pythia/v6.424/lib --enable-minuit2 --enable-roofit --enable-gdml --enable-mathmore --enable-gsl-shared --with-finkdir=/usr/osxws
$ 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
Before using ROOT, set up enviromental variables by sourcing a setup script as
$ . /opt/root/5.34.12/bin/thisroot.sh
Now you are ready to use ROOT.