rivet is hosted by Hepforge, IPPP Durham
close Warning: Can't synchronize with repository "(default)" (Repository path '/hepforge/hg/rivet/public/rivet' does not exist.). Look in the Trac log for more information.

Version 38 (modified by Lars Sonnenschein, 14 years ago) (diff)

Complete set of installation instructions (tested at UCL and Durham) added

Getting started with Rivet

To download rivet use the command

svn checkout http://svn.hepforge.org/rivet/trunk rivet

this will download rivet in a folder named 'rivet' in the current directory

Download rivet and the external packages below, and do the usual ./configure; make; make install;. Use automake 1.9 and autoconf 2.59

You will find that this release candidate of log4cpp does not build due to an extra semi-colon on line 29 of include/log4cpp/Manipulator.hh. Remove this semi-colon and it's ok. This has been reported as a bug to the developers and will be fixed in the next release.

In addition, we also installed out own copy of libtool in ~/Cedar/local to make sure we had the correct version (also had our own autotools and autoconf there, but probably unnecessary). exported the paths to autotools etc

  export AUTOCONF = $HOME/Cedar/local/bin/autoconf
  export AUTOMAKE = $HOME/Cedar/local/bin/automake
  export LIBTOOL = $HOME/Cedar/local/bin/libtool
  export ACLOCAL = $HOME/Cedar/local/bin/aclocal

and just for good measure made sure that $HOME/Cedar/local/bin was also at the front of $PATH

Having installed all that lot, we found that Rivet itself would build.

Running Rivet

To run Rivet, you'll need to link to a main programme. Within CEDAR we use RivetGun; to see how to get started with this, follow these instructions.

Some Problems and Solutions

David: Here are some problems and soulutions I've encountered.

log4cpp 0.3.5rc3

problem: when running make check, one of the tests fails resulting in an error. However if you run make without running the tests it compiles and installs ok.

solution: this is probably not a real problem since James used this version but don't be surprised if you get this error, to be on the safe side I installed the older version log4cpp 0.2.8

log4cpp 0.2.8

problem: here is a problem I encountered when running make with log4cpp. 0.2.8 on my home computer.

Clock.hh:13: error: ISO C++ does not support `long long'

soulution: not the best solution but I edited the header file (from which the error stemmed) from type long long to type long. No problems... yet, probably a much better idea would be to install the dependency.

Complete installation instructions, tested at UCL and University of Durham (Feb/2007)

(to run examples with RivetGun, based on different event generators)

For local user installations a directory (e.g. named local) has to be created to be supposed to contain the created libraries. (For a global system wide isntallation the default directory is /usr/local/)

First Installation of related packages: (some of the packages might already be installed globally system wide.

In this case you don't need to re-install those packages but the path has to be right)

  1. CLHEP version from http://proj-clhep.web.cern.ch/proj-clhep/ clhep- do: tar xvzf clhep-

mv clhep2.0.3.1 (optionally) cd clhep2.0.3.1/CLHEP ./configure (for global system wide installation) or : ./configure --prefix=[path_to_my_local_directory] (where [path_to_my_local_directory] could be e.g. ${HOME}/local) make make install cd ../..

  1. HepMC version 2.00.02 from http://lcgapp.cern.ch/project/simu/HepMC/download/ HepMC-2.00.02.tar.gz do: tar xvzf HepMC-2.00.02.tar.gz

cd HepMC-2.00.02 ./configure [--prefix=[path_to_my_local_directory]] make make install cd ..

  1. HepPDT version 2.02.02 from http://lcgapp.cern.ch/project/simu/HepPDT/download/ HepPDT-2.02.02.tar.gz do: tar xvzf HepPDT-2.02.02.tar.gz

cd HepPDT-2.02.02 make make install cd ..

  1. KtJet version 1.7 from http://www.hepforge.org/downloads/ktjet KtJet-1.07.tar.gz do: tar xvz KtJet-1.07.tar.gz

cd KtJet-1.07 ./configure --prefix=/tmp/sonne/local CLHEPPATH=/tmp/sonne/local make make install cd ..

  1. log4cpp version 0.5.3rc3 from http://sourceforge.net/project/downloading.php?group_id=15190&use_mirror=mesh&filename=log4cpp-0.3.5rc3.tar.gz&11773209 log4cpp-0.3.5rc3.tar.gz do: tar xvzf log4cpp-0.3.5rc3.tar.gz cd log4cpp-0.3.5rc3 remove superfluous semicolon on line 29 of header file include/log4cpp/Manipulator.hh (DON'T do autoreconf -iv, for some reason this breaks the proper installation) ./configure --prefix=/tmp/sonne/local make make install cd ..
  1. lhapdf version 5.2.3 from http://www.hepforge.org/downloads/lhapdf lhapdf-5.2.3.tar.gz cd lhapdf-5.2.3 do: tar xvzf lhapdf-5.2.3.tar.gz ./configure --prefix=/tmp/sonne/local make make install cd ..
  1. (optionally to test RivetGun Fortran PYTHIA examples) fortran pythia version 6.202 from http://www.hepforge.org/downloads/cedar pythia-6.206-libtool.tar.gz do: tar xvzf pythia-6.206-libtool.tar.gz cd pythia-6.206 ./configure --prefix=/tmp/sonne/local make make install cd ..
  1. (optionally to test RivetGun Fortran PYTHIA examples) fortran herwig version 6.510 from http://www.hepforge.org/downloads/cedar herwig-6.510-libtool.tar.gz do: tar xvzf herwig-6.510-libtool.tar.gz cd herwig-6.510 ./configure --prefix=/tmp/sonne/local make make install cd ..

9b.(needed for Fortran HERWIG/optionally)

fortran jimmy from http://www.hepforge.org/downloads/jimmy jimmy-4.3-libtool.tar.gz do: tar xvzf jimmy-4.3-libtool.tar.gz cd jimmy-4.3 ./configure --prefix=/tmp/sonne/local --includedir=/tmp/sonne/cedar/herwig-6.510/include make make install cd ..

  1. ThePEG++ version 1.0.1 from http://www.thep.lu.se/ThePEG/

ThePEG++-1.0.1.tgz do: tar xvzf ThePEG++-1.0.1.tgz cd ThePEG++=1.0.1 ./configure --prefix=/tmp/sonne/local CLHEPPATH=/tmp/sonne/local make make install cd ..

  1. Herwig++ version 2.0.1 from http://projects.hepforge.org/herwig/versions.html

Herwig++-2.0.1.tar.gz do: tar xvzf Herwig++-2.0.1.tar.gz cd Herwig++-2.0.1 ./configure --prefix=/tmp/sonne/local CLHEPPATH=/tmp/sonne/local THEPEGPATH=/tmp/sonne/local KTJETPATH=/tmp/sonne/local make make install cd ..

  1. Rivet (for the time being latest version can be fetched from:)

svn co http://svn.hepforge.org/rivet/trunk rivet cd rivet autoreconf -iv ./configure --prefix=/tmp/sonne/local make make install cd ..

  1. RivetGun (for the time being latest version can be fetched from:)

svn co http://svn.hepforge.org/rivetgun/trunk rivetgun cd rivetgun autoreconf -iv ./configure --prefix=/tmp/sonne/local make make install

Now you can start a test executable, e.g.:

cd src/ ./ rivetgun-static --help

(and/or ./rivetgun --help)

(optionally) cd Test/ ./testCommandLine --help