Compiling Herwig++ at RCF

First compiling and installing LHAPDF:

  1. I made a local directory called "loacalLibrairies" and a subdirectory called "local" with the following subdirectories
    •  ~/> ls ~/localLibraries/local
      
      bin/  include/  lib/  share/ 
  2. Get LHAPDF from their downloads page. For example
    • ~/> cd localLibraries 
      ~/localLibraries/> wget http://www.hepforge.org/archive/lhapdf/lhapdf-5.8.5.tar.gz
  3. untar it
    • ~/localLibraries/> tar -xvf lhapdf-5.8.5.tar.gz
  4. Compilation:
    • :$ ./configure --prefix=/star/u/`id -u -n`/localLibraries/local --disable-pyext
      :$ make
      :$ maks install
      
  5. Downlaod PDFs
    • ~/> cd ~/localLibraries/local/share/lhapdf/
      :$ mkdir PDFsets
      :$ cd PDFsets
      :$ ~/localLibraries/local/bin/lhapdf-getdata CTEQ6ll CTEQ66 lomod MCal
  6. Added the following lines to ~/.cshrc
    • setenv PATH /star/u/`id -u -n`/localLibraries/local/lib:$PATH
      setenv LD_LIBRARY_PATH /star/u/`id -u -n`/localLibraries/local/lib:$LD_LIBRARY_PATH

Now installing GNU scientific library:

  1. ~/> cd ~/localLibraries
  2. Get gsl. For example:
    • ~/localLibraries/> wget http://mirror.clarkson.edu/gnu/gsl/gsl-1.14.tar.gz
  3. Untar the tarball:
    • ~/localLibraries/> tar -xvf gsl-1.14.tar.gz
  4. Change to the gsl directory
  5. Configure and compile:
    • :$ ./configure --prefix=/star/u/`id -u -n`/localLibraries/local/
      :$ make
      :$ maks install

Now installing ThePEG:

  1. ~/> cd ~/localLibraries
  2. Get ThePEG. For example:
    • ~/> wget http://www.hepforge.org/archive/thepeg/ThePEG-1.7.0.tar.bz2
  3. Untar:
    • ~/> tar -xvf ThePEG-1.7.0.tar.bz2
  4. Change to ThePeg directory
  5. Configure and compile
    • :$ ./configure --with-LHAPDF=/star/u/`id -u -n`/localLibraries/local/lib --prefix=/star/u/`id -u -n`/localLibraries/local/  --with-gsl=/star/u/`id -u -n`/localLibraries/local
      :$ make 
      :$ make install
      

Finally compiling and installing Herwig++

  1. ~/> cd ~/localLibraries
  2. Get the source code. For example:
    • ~/> wget http://www.hepforge.org/archive/herwig/Herwig++-2.5.0.tar.bz2
  3. Untar:
    • ~/> tar -xvf Herwig++-2.5.0.tar.bz2
  4. change to Herwig++ directory
  5. Configure and compile:
    • :$ ./configure --prefix=/star/u/`id -u -n`/localLibraries/local/ --with-gsl=/star/u/`id -u -n`/localLibraries/local
      :$ make
      :$ make install
      
  6. Changed $PATH in .cshrc to
    • setenv PATH /star/u/`id -u -n`/localLibraries/local/lib:/star/u/`id -u -n`/localLibraries/local/bin:$PATH
  7. ~/> source .cshrc 

 

ENJOY!

 

--

Mustafa^2