After logging into a clean shell run
module unload altd module unload darshan module unload PrgEnv-intel module load PrgEnv-gnu module unload cray-shmem module load scons module load mercurial module load cmake module load boost module load gsl
Unpack HepMC tarball and enter HepMC main directory. Then Run
mkdir install ./bootstrap ./configure --with-pic --prefix=/path/to/sherpa/install --with-momentum=MEV --with-length=MM CC=cc CXX=CC --enable-shared=no make make install
Unpack HepMC tarball and enter HepMC main directory. Then Run
mkdir install ./configure --with-pic --prefix=$PWD/install --with-momentum=MEV --with-length=MM --enable-shared=no make make install