Документ взят из кэша поисковой машины. Адрес оригинального документа : http://lhe.sinp.msu.ru/~rud/Atlas/soft/Install.CompHep.html
Дата изменения: Sat Nov 17 11:21:09 2007
Дата индексирования: Mon Oct 1 19:51:42 2012
Кодировка:
Brief CompHep Installation Instruction

Brief CompHep Installation Instruction


I. Install common distribution

  1. Go to http://comphep.sinp.msu.ru/downloads,
  register there as user and download latest versions of

    comphep-4.4p3-slc3.tgz  	  -- CompHep itself
    comphep-interfaces-1.0.1.tgz  -- old interface
    cpyth-2.0.6.tgz  		  -- new interface
    richman_comphep.pdf 	  -- tutorial
  
  I stored them in directory CompHep_source/.
  
  2. First check your CERNLIB installation - it should contain
     lapack and blas libraries.

     Also package xorg-x11-devel must be installed (check it: rpm -q xorg-x11-devel).
     Otherwise you will see errors, complaining on absence of X11/Xlib.h, Xutil.h, keysym.h.
  
  3. On /data4/ I create directory for common CompHep installation:
  
    mkdir /data4/comphep
    mv CompHep_source /data4/comphep
    cd /data4/comphep
    
    unsetenv COMPHEP # make sure you are NOT using wrong env. variable!    
    
  4. Install CompHep itself:

    tar zxf CompHep_source/comphep-4.4p3-slc3.tgz
    cd comphep-4.4p3-SLC3/
    ./configure  
      # command output :
      Checking OS and C-compiler ...	 OS=Linux, CC=gcc
      Checking char type...signed.
      Checking long type...long is 4 bytes.
      Cheking X11 libs ...OK
      Checking CERNlibs...OK
      =======================================
      To compile CompHEP input make command
      =======================================
    
    make  
      # command output :
      ******************************************************************
      *        CompHEP-4.4p3 has been successfully built	       *
      * 							       *
      *  Please create a user working directory using the command      *
      * 	make setup WDIR=path_to_your_user_work_dir	       *
      *  NOTE: Do not use '~' to refer to home directory	       *
      *        Use environment variable HOME instead of 	       *
      ******************************************************************
    
    
  4b. Set env. variable COMPHEP :
    
     setenv COMPHEP /data4/comphep/comphep-4.4p3-SLC3  # in /etc/csh.login
     export COMPHEP=/data4/comphep/comphep-4.4p3-SLC3  # in /etc/profile
  
  4u. Make user working directory :
   
    mkdir $HOME/comphep_work 
    cd $COMPHEP
    make setup WDIR=$HOME/comphep_work/comphep-4.4p3-SLC3
      
      # command output :
      make -C /home/rud/comphep_work/comphep-4.4p3-SLC3/usr CC=gcc CFLAGS='-Wall -DNUM_DOUBLE -DCOMPHEP'
      make[1]: Entering directory `/home/rud/comphep_work/comphep-4.4p3-SLC3/usr'
      gcc -Wall -DNUM_DOUBLE -DCOMPHEP -I/data4/comphep/comphep-4.4p3-SLC3/src -c userFun.c
      gcc -Wall -DNUM_DOUBLE -DCOMPHEP -o mk_tab.exe userFun.o -L/data4/comphep/comphep-4.4p3-SLC3/lib -L/usr/X11R6/lib -L/cern/pro/lib -lisajet758 -lmathlib -lX11 -lm -ltab -lnum -lserv
      make[1]: Leaving directory `/home/rud/comphep_work/comphep-4.4p3-SLC3/usr'

      *****************************************************************
       Setup of the user directory for CompHEP-4.2 has been
       successfully performed

       To start CompHEP go to the user directory /home/rud/comphep_work/comphep-4.4p3-SLC3
       and enter the command './comphep'
      *****************************************************************
    

  5. Install old interface "comphep-interfaces" :
    
    tar zxf CompHep_source/comphep-interfaces-1.0.1.tgz
    cd CompHEP-interfaces-1.0.1/
    ./configure
    
    make
      # command output :
      [a lot of unused variables...]
      **********************************************************************
      * CompHEP-interfaces-1.0.1 has been installed successfully!!!   	   *
      *                                                                    *
      * For further working with the CompHEP-interfaces programs you need  *
      * to install a user directory:                                       *
      *   make install GEN=gen_name USERDIR=path_to_your_user_dir          *
      *                                                                    *
      * Variable GEN can be pythia, herwig, or all (default: all)          *
      * Variable USERDIR has to be set to full path to your user directory *
      **********************************************************************

  5u. Make user working directory :
      
      Do NOT install CompHEP-interfaces in the same $HOME/comphep_work/comphep-4.4p3-SLC3/ directory!
      (Overwrites Makefile at least)
    
    cd $COMPHEP/../CompHEP-interfaces-1.0.1
    make install GEN=all USERDIR=$HOME/comphep_work/comphep-4.4p3-SLC3/interfaces

      # command output :
      ***********************************************
      *  CompHEP-interfaces has been installed.     *
      *  Go to /home/rud/comphep_work/comphep-4.4p3-SLC3/interfaces         *
      *  and take delight! ;                        *
      ***********************************************


  6. Install new interface "cpyth" :
    
    tar zxf CompHep_source/cpyth-2.0.6.tgz
    cd cpyth-2.0.6
    ./configure
      # command output :
      Checking OS and C-compiler ...     OS=Linux, CC=gcc, options=-Wall
      Checking F-compiler ...     F77=f77, options=
      Cheking X11 libs ...OK
    
    make
      # command output :
      ...
      ***************************************************************
      *        cpyth-2.0.1 has been installed successfully!!!       * [why 2.0.1?!]
      *                                                             *
      * For a work with the cpyth program you have to install user  *
      * work directory:                                             *
      *   make setup WDIR=full_path_to_your_user_work_dir           *
      ***************************************************************
  
  6u.  Now make directory for new interface (cpyth-2.0.6) :
    
    cd $COMPHEP/../cpyth-2.0.6/
    make setup WDIR=$HOME/comphep_work/comphep-4.4p3-SLC3/cpyth-2.0.6
      
      # command output :
      make -C /home/rud/comphep-4.4p3-SLC3/cpyth-2.0.6 make_table CC=gcc CFLAGS='-Wall'
      make[1]: Entering directory `/home/rud/comphep_work/comphep-4.4p3-SLC3/cpyth-2.0.6'
      gcc -Wall  -c userFun.c
      gcc -Wall -o bin/make_table.exe userFun.o -L/data4/comphep/cpyth-2.0.6/src -lcomphep -lutilities -lm
      make[1]: Leaving directory `/home/rud/comphep_work/comphep-4.4p3-SLC3/cpyth-2.0.6'

  

II. To start CompHep change to $HOME/comphep_work/comphep-4.4p3-SLC3/ directory and run
    
    ./comphep &
    

III. To learn CompHep quickly see tutorial richman_comphep.pdf
     and read manual from http://comphep.sinp.msu.ru/.
  
 


Original by Oct 30, 2007.
Last modified on Nov 17, 2007.