How to install RunMC on Windows

  1. Install recent version of Cygwin. Install the base packages, and, in addition, the following packages: zip, unzip, g++, g77, make, X11, X11lib (X11 library for X11 development, this is necessary for ROOT installation); Use “UNIX” file system for Cygwin installation;

  2. Install ROOT. How to build the ROOT under Cygwin is documented on the ROOT web page;

  3. Download the main RunMC, and gunzip, and untar the package as described in the RunMC web page;

  4. Download additional package called runmc-win32. You can copy it from here. It includes CLHEP and a few CERNLIB libraries which are necessary to build Monte Carlo models. It also has several scripts to change options in RunMC makefiles.

  5. gunzip runmc-win32.tar.gz;  tar -vxf runmc-win32.tar (note the  package may have a version number, therefore, use appropriate name for runmc-win32.tar.gz file). This will create build-win32 directory;

  6. Now set up bash environmental variables. Include in your ".bashrc" file the following lines:
    # set RUNMC variables
    export RUNMC=/home/sergei/work/RunMC        #  specify correct location of RunMC directory
    export RUNMCwin32=`cygpath -da $RUNMC`    # only for Cygwin/windows - do not modify
    export PATH=$RUNMC/bin:$PATH                    # do not modify

  7. If this is done, do "source  .bashrc";

  8. Copy build-win32 directory to $RUNMC/, i.e do "mv build-win32 $RUNMC/"

  9. Now, go to $RUNMC/build-win32 and type "./install.sh". This should compile the RunMC.

  10. If you plan to use Source Navigator, you should install it under Windows as well. In this case, set correct location of snavigator and acrobat reader in the scripts $RUNMC/main/runmc/proj_view.sh and  $RUNMC/main/runmc/show_manual.sh

  11. In order to use RunMC together with ROOT, first you should start X-windows on Cygwin, and only then start RunMC program.


S.V.Chekanov (chekanov@mail.desy.de)