Genie is hosted by Hepforge, IPPP Durham
GENIE - 3rd Party Software

Last update: February 10, 2013


This section contains information for building 3rd party (external) software used by GENIE. If you encounter problems building the 3rd party software please contact the package authors or your local system administrators.

For a typical GENIE installation you need:

Installation of external packages in UNIX (incl. LINUX, MAC OS X)

Note: For detailed installation instructions read the GENIE User Manual / Appendix A (Installation instructions for beginners)

log4cpp
Description: Message/Error logging library for C++
Recommended version:
Web-site: http://sourceforge.net/projects/log4cpp

Installing development version from source:
Get the source code from the sourceforge.net CVS repository:
shell$ cd /your/software/area/
shell$ cvs -d :pserver:anonymous@log4cpp.cvs.sourceforge.net:/cvsroot/log4cpp login
(passwd: just press enter)
shell$ cvs -d :pserver:anonymous@log4cpp.cvs.sourceforge.net:/cvsroot/log4cpp -z3 co log4cpp
shell$ cd log4cpp
shell$ ./autogen.sh
shell$ ./configure --prefix=[location]
shell$ gmake
shell$ gmake install

Notes:
- log4cpp may already exist in your system (look for a liblog4cpp library)
- Precompiled binaries are also readily available on LINUX (eg using yum: `yum install log4cpp') and MAC OS X (eg. using DarwinPorts: `sudo port install log4cpp').

libxml2
Description: XML parser.
Recommended version: any reasonably new
Web-site: http://www.xmlsoft.org

Installing development version from source:
shell$ cd /your/software/area/
shell$ svn co https://svn.gnome.org/svn/libxml2/trunk libxml2
shell$ cd libxml2
shell$ ./autogen.sh --prefix=[location]
shell$ gmake
shell$ gmake install

Notes:
- libxml2 is most likely already installed at your system (look for a libxml2 library)
- Precompiled binaries are also readily available on LINUX (eg using yum: `yum install libxml2') and MAC OS X (eg. using DarwinPorts: `sudo port install libxml2').

LHAPDF
Description: The Les Houches Accord PDF Interface
Recommended version:
Web-site: http://projects.hepforge.org/lhapdf/

Installing version x.y.z from source:
shell$ cd /your/software/area/
shell$ wget http://www.hepforge.org/archive/lhapdf/lhapdf-x.y.z.tar.gz
shell$ tar xzvf lhapdf-x.y.z.tar.gz
shell$ cd lhapdf
shell$ ./configure --prefix=[location]
shell$ gmake
shell$ gmake install

PYTHIA6 and ROOT/PYTHIA thin wrapper library
Description: LUND Monte Carlo (used by GENIE for hadronizing the high-W fraction of neutrino events)
Recommended version: Do not use the precompiled PYTHIA version that comes with CERNLIB.
Web-site: http://www.thep.lu.se/~torbjorn/Pythia.html

Installing from source:
There is a number of steps in order to build PYTHIA for GENIE. Downloading, tweaking and building PYTHIA is automated using Robert Hatcher's build_pythia6.sh script. Please read the script documentation. It would download all the required source files, modify them as needed and build them. So you only need to do:
shell$ cd /your/software/area/
shell$ source build_pythia6.sh

Notes:
- build_pythia6.shneeds to access the internet to download the source code. If you access the internet through a proxy server and not directly then remember to set the http_proxy environmental variable.
- build_pythia6.sh accepts a PYTHIA6 version as an argument. For example, in order to build v6.4.12 then type: `source build_pythia6.sh 6412'. Read the script documentation for details.
- If you are using a recent version of ROOT and have problems with undefined pytune_ symbols, then move to a recent version of PYTHIA6.

ROOT Class Libraries
Recommended version: Any reasonably new (> 5.15.08)
Web-site: http://root.cern.ch

Detailed installation instructions are given in http://root.cern.ch/root/Install.html

For a standard GENIE installation the only extra ROOT configuration options you need are the ones required for enabling GSL (via MathMore) and the ROOT/PYTHIA interface. When configuring ROOT, add: `--enable-pythia6', `--enable-mathmore' and `--with-pythia6-libdir=/path/to/pythia/lib'


Installation of external packages in Windows