Download the file ``runmcv[version].tgz'' from http://www.desy.de/~chekanov/runmc([version] denotes the current RunMC version). Then "gunzip" and "untar" this file, i.e. ``gunzip runmc[version].tar.gz; tar -vxf runmcv[version].tar''. This creates the directory RunMC[version]. To install the RunMC program from the source file, you need: g++, g77 compilers. Also, you have to have ``sed'', ``zip/unzip'' and ``acroread'' to read the user manual. Normally, all these packages are already installed on Linux PCs.
Before further installation, you should have:
Check JAVA by typing ``java -version'' . If JAVA is installed, you should see
java version "1.5.0_05" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_05-b05) Java HotSpot(TM) Client VM (build 1.5.0_05-b05, mixed mode, sharing)
or a similar mesage. If not, install recent java JRE (Java Runtime Environment) from the SUN web page http://www.java.com/en/download/manual.jsp.
The simplest way to compile C++ source of the main package is:
sh family:
export RUNMC=<path>/RunMC export PATH=$RUNMC/bin:$PATH
csh family:
setenv RUNMC <path>/RunMC setenv PATH ${RUNMC}/bin:${PATH}
Type ``echo $RUNMC'' in the bash shell, to be sure that you set this variable properly.
It is also advisable to check your ROOT installation before compiling the RunMC. Type ``cd $ROOTSYS/test'' and compile ROOT examples by typing ``make''. If ROOT is installed correctly, you should be able to compile all examples in the ``test'' directory.
To compile RunMC, go to the ``$RUNMC/build'' directory and type "./install.sh" to compile the package. This script makes some most elementary checks of your settings. The installation takes 3-10 minutes depending on CPU. After the first compilation, next compilations should take significantly less time, since all Monte Carlo libraries should be installed already.
You can remove the program binaries and object files from the source code directory by typing "make cleanall". To remove only object files, do "make clean". To remove the Monte-Carlo-related files, type "make cleanmc".
Here, ``$RUNMC'' denotes the installation directory of the RunMC project, and will not be mentioned again; all the directories discussed below are assumed to be located in this directory.
Go to the ``proj'' directory and type "runmc" to start RunMC GUI. As long as you set $RUNMC, you can execute "runmc" from any directory.
This could be due to incorrectly installed ROOT or CLHEP library Check ROOT as: cd ``$RUNMC/build/test; ./check_root.sh'' Check CLHEP as: cd ``$RUNMC/build/test; ./check_clhep.sh'' If by running these scripts you will see errors, then reinstall these libraries