ROOT on MacOS X

Note that I have not yet tried to prepare a custom kernel with SysV semaphore support. The resultant root build thus lacks some functionality.
By the way the current ROOT CVS tree contains "macosx" target, though not yet officially announced, which means there is no guarantee: the port is based on modifications by Ben Cowan <benc@SLAC.stanford.edu>, which are basically equivalent to mine. I have recently sent additional patches to make real shared libraries to the ROOT team. The current CVS tree also includes them, too. So now building "ROOT" is fairly straightforward, though there were a lot of troubles before we reached this stage. See this note for more details.

[1] Compilation Conditions

 MacOS X Release 10.0.02
 standard Mach Kernel w/o SysV semaphore patch
 gcc-with-g77-926.3-1a
 libdl.dylib: dlcompat-20010123-1a by Christoph Pfisterer
 XFree86 4.0.3 + Aqua0.5
 freetype-*1.3.1-2a
[2] Compilation Procedure

$ 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
$ tar -zxvf ../orig/ttf_1.1.tar.gz
$ su
# mv ttf/fonts /usr/share/fonts/ttf
# pushd /cern/pro/lib
# ln -s libpythia6134.a libPythia.a
# exit
$ cd root
$ export ROOTSYS=`pwd`
$ export DYLD_LIBRARY_PATH=$ROOTSYS/lib
$ export PATH=$ROOTSYS/bin:$PATH
$ ./configure macosx
$ make

According to the directory change for ttf fonts, edit ~/.rootrc as:

#Unix.*.Root.TTFontPath:     $(ROOTSYS)/ttf/fonts
Unix.*.Root.TTFontPath:     /usr/share/fonts/ttf

A prebuilt binary package of root_v3.01.00-CVS20010510 is available from here.


Back to Keisuke Fujii's HEP on X Page
fujiik@jlcuxf.kek.jp March 18, 2001