Getting started with Rivet
The easiest way to start using Rivet is via the Docker system (see https://www.docker.com/), which is like a lightweight Linux virtual machine that's easily installed and run on Mac, Linux and Windows machines. See the dedicated Docker wiki page for more detail.
The rest of these instructions are mainly aimed at users who want to natively install and run a release of Rivet on their machine.
GettingStartedForDevelopers has some additional or replacement steps for people wishing to check out the development version from the repository and build from there.
The simplest Rivet installation uses a "bootstrap" script to install Rivet and all its dependencies from release tarballs.
If you are installing Rivet on an Apple Mac, please take a look at the MacInstallationIssues first. If you want to use packages from CERN's CVMFS network file system to assist your installation, or to directly use Rivet from there, see the bottom of this page.
Installation of Rivet 2.x and all dependencies
Prerequisite Python header files are required. On Ubuntu, you can use this command to install the necessary files system-wide:
sudo apt-get install python-dev
1) Download the bootstrap script into a temporary working directory, and make it executable:
cd /scratch/rivet wget http://rivet.hepforge.org/hg/bootstrap/raw-file/2.6.0/rivet-bootstrap wget https://phab.hepforge.org/source/rivetbootstraphg/browse/2.6.1/rivet-bootstrap?view=raw -O rivet-bootstrap chmod +x rivet-bootstrap
(Replace the version string as appropriate if you want to install other versions of Rivet 2.x, and get
rivet-bootstrap-lcg if you want the version that tries to use installations of HepMC, FastJet? and Boost from the LCG AFS areas.)
2) Check the options. Look at the header of the script to see all variables which you can set, e.g. to skip installation of certain dependencies (boost, gsl, ...) if they are available in your system:
less rivet-bootstrap ## and read...
3) Run the script. By default it will install to
$PWD is the current directory. If you need to change that, specify the corresponding values on the command line. Examples:
./rivet-bootstrap # or INSTALL_BOOST=0 BOOSTPATH=/usr/local ./rivet-bootstrap # or INSTALL_PREFIX=$HOME/software/rivet MAKE="make -j8" ./rivet-bootstrap
We will refer to the installation root path as
If you have trouble with the Boost library (hopefully you won't) see TroubleshootingBoost.
Setting up the environment
After the script grinds away for a while, it will tell you that it is finished and how to set up a runtime environment (similar to that used inside the build script) for running Rivet. A sourceable rivetenv.(c)sh script is provided for (c)sh shell users to help set up this environment. Here's how to set up the environment and then test the
rivet program's help feature and analysis listing:
source $PREFIX/rivetenv.sh rivet --help rivet --list-analyses
If that works, everything is installed correctly. If you are using the
bash shell in your terminal, then Rivet will offer you programmable tab completion: try typing
rivet and pressing the Tab key!
You may wish to add the environment variable settings to your
~/.bashrc shell config file, so that Rivet will work without needing any special session setup.
You can now check out the FirstRivetRun guide.
Alternative: run from CVMFS
If you are running on the CERN lxplus system, or any other system where the CVMFS applications are usable, you should be able to use the LCG/Genser installation of Rivet without having to build it yourself: see the tutorial slides in our documentation area.
You can also use a CVMFS-enabled system like lxplus to set up a compatible compiler+Python system, since (for example) the Scientific Linux 6 system tools are not sufficient. The minimum compatible LCG platform can be configured as follows:
source /cvmfs/sft.cern.ch/lcg/releases/LCG_85/gcc/4.9.3/x86_64-slc6/setup.sh source /cvmfs/sft.cern.ch/lcg/releases/LCG_85/Python/2.7.10/x86_64-slc6-gcc49-opt/Python-env.sh
If you're having trouble, there may well be some relevant help on the TroubleShooting page.