# How to install the GENIE neutrino event generator on thpc09 # ----------------------------------------------------------- # Make sure libg2c is properly installed. I needed to do cd ~/software/installed/lib ln -s libg2c.so.0 libg2c.so # Download LHAPDF (http://www.hepforge.org/downloads/lhapdf) and build it: FC=gfortran-4.5.1 ./configure --prefix=/home/jkopp/software/installed/ make make install # Download LHAPDF PDF sets, make sure GRV98lo and GRV98nlo are included lhapdf-getdata CTEQ6ll CTEQ66 lomod MCal GRV98* # or lhapdf-getdata --all # Download and build log4cpp (http://sourceforge.net/projects/log4cpp/files/) ./configure --prefix=/home/jkopp/software/installed/ make make install # (Re-)compile root with Pythia6 support ./configure --build=debug --enable-pythia6 \ --with-pythia6-libdir=/scratch/jkopp/software/pythia6/v6_412/lib/ \ --etcdir=/home/jkopp/software/installed/etc \ --prefix=/home/jkopp/software/installed/ \ --with-cc="gcc-4.5.1" --with-f77=gfortran-4.5.1 --with-cxx=g++-4.5.1 # Make sure that root reads its configuration file (system.rootrc or ~/.rootrc), # and that the plugin path set in there is correct. In particular, make sure # that the command # gROOT->GetPluginManager()->FindHandler("TVirtualTreePlayer") # does not return NULL # Copy or link Pythia libraries to a place where GENIE can find them cp /scratch/jkopp/software/pythia6/v6_412/lib/* ~/software/installed/lib # Download and build GENIE mkdir genie svn co https://svn.hepforge.org/genie/branches/R-2_6_0 . export GENIE=$(pwd) ./configure --prefix=/home/jkopp/software/installed/ \ --enable-debug \ --enable-atmo \ --enable-viewer \ --enable-test \ --enable-vle-extension \ --enable-vhe-extension \ --with-lhapdf-lib=/home/jkopp/software/installed/lib/ \ --with-lhapdf-inc=/home/jkopp/software/installed/include/ \ --with-pythia6-lib=/scratch/jkopp/software/pythia6/v6_412/lib/ gmake gmake install # To run GENIE, define export LHAPATH=$HOME/software/installed/share/lhapdf/PDFsets/ export GENIE=/scratch/jkopp/software/genie/