VMC SW installation

From AstroNuWiki
Jump to: navigation, search

Install CLHEP:

(http://proj-clhep.web.cern.ch/proj-clhep/)
    #-------------------------------------------------------------
    #  installing from a source code tar ball
    #-------------------------------------------------------------
    Unzip the source code tar ball in some relevant directory.
    Create a build directory that is NOT in the source code directory tree.
    cd <build_directory>
    <source_code_direcotry>/configure --prefix=<install_dir>
      (Note that files will be installed under /usr/local if you do not
       specify a prefix.)
   make
     (Build temporary copies of libraries and executables.)
   make check
    (Run the tests.)
   make install
    (Copy libraries, headers, executables, etc. to relevant
     subdirectories under <install_dir>.)

Install geant4

(http://geant4.web.cern.ch/geant4/)
  1. unpack geant
  2. put data files in geant4/data
  3. ./Configure -build - ask a lot of stupid questions (Example of answers)
           (see G4_install.txt for the answers)

/opera/ana/sw/newsw/geant4.8.0.p01/.config/bin/Linux-g++/config.sh can be edited if necessary

problem on 64 bit system:

 Creating shared library /opera/ana/sw/newsw/geant4.8.0.p01/lib/Linux-g++/libG4FR.so ...
 /usr/bin/ld: cannot find -lXmu
 collect2: ld returned 1 exit status
 gmake[2]: *** [/opera/ana/sw/newsw/geant4.8.0.p01/lib/Linux-g++/libG4FR.so] Error 1

solution:

 in config/sys/Linux-g++.gmk modify -L/usr/X11R6/lib to -L/usr/X11R6/lib64
    d) ./Configure -install
    e) cp /cern/geant4/src/geant4/.config/bin/Linux-g++/env.sh /cern/geant4  - the envirement scripts

Install VGM:

(http://ivana.home.cern.ch/ivana/VGM.html)

  unpack and copy it into /cern/vgm then build
  for the setting see vgm/doc/INSTALL
problem: didn't foung geant4 includes
solution: modify in ../config/geant4.gmk as
  CPPFLAGS += -I$(G4INCLUDE)
  export USE_VGM=1  before compilation of vmc:

Install geant4_vmc

(http://root.cern.ch/root/vmc/VirtualMC.html)
problem: ../config/Makefile.linuxx8664gcc: No such file or directory
solution: cp Makefile.linux Makefile.linuxx8664gcc