Older Mac Operating Systems

OS X Lion

You will need to install

Installation

The general instructions can be used. If the Fink GSL library is not found, add the flag --with-gsl=/sw to the configure step.

If at runtime you get reports about missing libraries, try setting the DYLD_LIBRARY_PATH variable. This mainly affects some HepMC builds:

export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:/path/to/HepMC-installation/lib

Instructions for older OS X versions before HwOsX Lion

Prerequisites for tarball installations

  • Mac OS X 10.3 or later (see extra instruction below for 10.6)

  • gcc from the XCode tools

  • Fink packages make and gsl. To get these packages run the following on the command line after installing Fink:

    sudo apt-get install make gsl
    

    or use the FinkCommander GUI tool.

  • A Fortran compiler. As we have received frequent problem reports with the fink compiler, we strongly recommend to use the gfortran compiler available at http://hpc.sourceforge.net/.

  • In fact, with the most recent versions of Herwig++ (2.4.2), Xcode (gcc/g++ 4.2.1) and fink (gfortran 4.4.1) success has been reported without needing the sourceforge version. Further feedback from users would be welcomed. (Note, however, that with this combination, the cachelookup_ problem mentioned below is still encountered.)

Installation

The general instructions can be used. If you’re using OS X 10.3, you need to set

export MACOSX_DEPLOYMENT_TARGET=10.3

If at runtime you get reports about missing libraries, try setting the DYLD_LIBRARY_PATH variable. This mainly affects some HepMC builds:

export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:/path/to/HepMC-installation/lib

Mac OS X 10.6 (Snow Leopard)

  • Note that the following is only relevant if you use the sourceforge compilers from HPC. With Xcode and fink only it is not necessary.

With snow leopard and the latest version (4.5.0) of gfortran only from HPC, the instructions above should work. However, if you have installed the full gcc from HPC, an inconsistent set of libraries may be found at configure time. You can avoid this by doing both

  1. forcing use of the Xcode compilers with configure-time flags CC=/usr/bin/gcc CXX=/usr/bin/g++ FC=/usr/local/bin/gfortran and
  2. hiding HPC’s g++ standard library, eg with sudo mv /usr/local/lib/libstdc++.6.dylib /usr/local/lib/libstdc++.6.dylib.hidden

If you have set --enable-debug at configure time, then depending on the compiler version, make``ing might stop with an internal compiler error when compiling function ``cachelookup_. This can be avoided by compiling this file only without -g:

cd Looptools
make libHwLooptoolsXFC_la-cache.lo AM_CFLAGS=""
cd ...

then continuing with the rest of the make.

Mac OS X PPC

There are problems building Herwig++ on PowerPC Macs. These mainly stem from incompatibilities of the XCode compiler with a FORTRAN compiler being obtained from another source, e.g. Fink.

A solution to this will involve installing a compiler suite from scratch in order to build Herwig++ and all dependencies within a consistent environment.