[1] Compilation Conditions
MacOS X Release 10.4.2[2] Compilation Procedure
standard Mach Kernel (Darwin 8.3.0)
gcc-4.1.0-svn20051124b.ppc.rpm
Apple's X11 for MacOS X
CERNLIB-2005
If you want to try the current CVS tree, do
$ export CVSROOT=:pserver:cvs@root.cern.ch:/user/cvs
$ cvs login
(Logging in to cvs@root.cern.ch)
CVS password: cvs
$ cvs -z3 checkout root
or if you just want to use the production version, do
$ tar -zxvf <somewhere>/root_v5.11.02.source.tar.gz
then follow the steps below:
$ tar -zxvf <somewhere>/pythia6.tar.gz
$ cd pythia6
$ patch -p1 -s < <somewhere>/pythia6319-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.11.02-gfortran.patch
$ ./configure --with-pythia6-libdir=`pwd`/lib --enable-minuit2 --enable-mathcore --enable-mathmore --enable-roofit
$ make
where <somewhere> stands for a directory into which you downloaded the source tarballs and my private patches 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 from the official ROOT site.
For non-Fink users, however, I prepared a binary tarball below. All you need
is to expand the tarball in wherever directory you want to install it.
For instance, if you want to install it as /opt/root/pro, do the following:
$ su
# mkdir -p /opt/root
# tar -zxvf root_v5.11.02-macosx10.4.tar.gz
-C /opt/root
or 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.11.02-macosx10.4 /opt/root/pro
# exit
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.