Compiling Herwig++ on Ubuntu

First compiling and installing LHAPDF:

  1. Get your favorite fotran compiler
    • sudo apt-get install gfortran
  2. I assume you already have g++, if not install it.
  3. Get LHAPDF from their downloads page.
  4. Then following the instructions on their installation page
    • tar -xvf lhapdf-v.r.p.tar.gz
    • cd lhapdf-v.r.p
    • sudo ./configure --prefix=/usr/local
    • sudo make
    • sudo make install
    • cd /usr/local/share/lhapdf
    • sudo mkdir PDFsets
    • cd PDFsets
    • sudo lhapdf-getdata --all (actually all you need are, CTEQ6ll,CTEQ5L,GRV98nlo,MRST2001nlo)
    • add this line "PATH_LHAPDF/lib to the end of /etc/ld.so.conf.d/libc.conf
    • sudo ldconfig

Now installing ThePEG:

  1. Install GNU Scientific Library "gsl"
    • sudo apt-get install gsl-bin libgsl0-dev
  2. Get ThePEG
  3. Untar the ball
  4. Change to ThePEG directory
  5. Then follow these instructions:
    • ./configure --with-LHAPDF=/usr/local/lib --prefix=/usr/local/
    • make check
    • sudo make instal

Finally compiling and installing Herwig++

  1. Get the source code
  2. Untar the tarball
  3. Change to the directory
  4. Then:
    • ./configure --prefix=/usr/local
    • make check
    • sudo make install