VMC SW installation

From AstroNuWiki
Jump to: navigation, search

Install 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.)
     (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

  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


 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:


  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
  export USE_VGM=1  before compilation of vmc:

Install geant4_vmc

problem: ../config/Makefile.linuxx8664gcc: No such file or directory
solution: cp Makefile.linux Makefile.linuxx8664gcc