Installing ROOT on OSX 10.5

There is not yet (April 2008) a pre-build ROOT package specific to 10.5, however the 10.4 package should work.

Install the XCode tools so that you have gcc 4.x available (Leopard comes with gcc 3.3 by default).

You can look to see what version of gcc you have:

$ ls -l /usr/bin/gcc
lrwxr-xr-x  1 root  wheel  7 Apr 28 13:35 /usr/bin/gcc -> gcc-4.0

$ gcc --version
i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5465)
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Get the pre-compiled ROOT package ftp://root.cern.ch/root/root_v5.18.00.macosx-i386-gcc-4.0.tar.gz and unpack it. I like to put it in my home area below ~/root and name the directory to reflect the package. Setup a link to the package named "pro", so that the ROOTSYS will be ~/root/pro

cd ~
mkdir root
cd root
{download the file to here now}
tar -zxf root_v5.18.00.macosx-i386-gcc-4.0.tar.gz
mv root root_v5.18.00.macosx-i386-gcc-4.0
ln -sf root_v5.18.00.macosx-i386-gcc-4.0 pro

Quick test:

export ROOTSYS=~/root/pro
export PATH=$PATH:$ROOTSYS/bin
root

Setting the library path, you don't need to do this for ROOT itself (the root wrapper program does it) but may need to do it to run programs linked against root libraries.

export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$ROOTSYS/lib

Compiling ROOT Yourself

Get XCode 3.0 from here (you need to register) http://connect.apple.com/

??? In principle, this is possible, however getting it built and knowing that it is built properly may be an issue. If you want to use features that aren't compiled into the binary package above, you'll have to go this route.

-- TomRockwell - 28 Apr 2008
Topic revision: r2 - 28 Apr 2008, TomRockwell
 

This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback