# yum groupinstall "Development Tools"
# yum update
# yum install vim
# yum install log4cpp log4cpp-devel
# yum install libxml2 libxml2-devel
# yum install redhat-rpm-config
# yum install python2-devel
# curl -O -L https://www.hepforge.org/archive/lhapdf/lhapdf-5.9.1.tar.gz
# tar -xzvf lhapdf-5.9.1.tar.gz
# cd lhapdf-5.9.1
# ./configure
# make
# make install
Note: If you get an error when building lhapdf about a string literal then you need to change line 881 from:
PyErr_Format(PyExc_RuntimeError, mesg);
to
PyErr_Format(PyExc_RuntimeError, "%s", msg);
in lhapdf_wrap.cc.
# lhapdf-getdata --dest=/usr/local/share/LHAPDF --all
# yum install gcc-gfortran
# curl -O -L https://www.hepforge.org/archive/genie/GENIE-Generator_v2.12.10.tar.gz
# tar -xzvf GENIE-Generator_v2.12.10.tar.gz
# cd GENIE-Generator_v2.12.10/src/scripts/build/ext
# ./build_pythia6.sh
# yum install git make gcc-c++ gcc binutils libX11-devel libXpm-devel libXft-devel libXext-devel python2-devel fftw3 gsl-devel gsl cmake
# curl -O -L https://root.cern.ch/download/root_v6.12.06.source.tar.gz
# tar -xzvf root_v6.12.06.tar.gz
# cd root_v6.12.06
# mkdir build
# cd build
# cmake -DPYTHIA6_LIB=/root/GENIE-Generator_v2.12.10/src/scripts/build/ext/v6_428/lib/libPythia6.so ../
# edit CMakeCache.txt to enable pythia6
# make
First, create a setup script called genie.sh:
#!/bin/bash
export GENIE=/root/GENIE-Generator_v2.12.10
export PYTHIA6=/root/v6_428/lib
source /root/root-6.12.06/build/bin/thisroot.sh
export LHAPATH=/usr/local/share/LHAPDF
export PATH=$ROOTSYS/bin:$GENIE/bin:$PATH
export LD_LIBRARY_PATH=$ROOTSYS/lib:$GENIE/lib:/usr/local/lib:$PYTHIA6:$LD_LIBRARY_PATH
Then, to configure GENIE:
$ cd
$ cd GENIE-Generator_v2.12.10
$ ./configure --with-pythia6-lib=/root/v6_428/lib
$ make