CLHEP -- A Class library for High Energy Physics

 
Last update - 2nd June 2002.  

CLHEP-1.8 Installation Guide

CLHEP is installed in AFS and NICE-NT:

The sources are available in:

The distribution kits can be accessed here.

The following is an installation guide for previous versions of CLHEP (CLHEP-1.7 and CLHEP-1.7.5):

     "CLHEP-1.7 Installation Guide"

Installation of CLHEP on Unix

The "configure" script is a part of the distribution, so it is not necessary to call "autoconf" to create it.

The installation procedure for UNIX looks like the following:

    gtar -zxvf clhep-1.8.0.0.tgz
    cd CLHEP
    ./configure
    gmake install prefix=...
The default compilers are:
    Linux - g++
    SUN - CC
    DEC - cxx
If you want to use other compilers then set CXX environment variable before to call the "configure" script:
    setenv CXX KCC     // or export CXX=KCC
    ./configure
    gmake install prefix=...

Examples of building shared library

Linux:
    cd CLHEP
    ./configure
    gmake     // build archive library first
    mkdir tmp
    cd tmp
    cp -i ../Evaluator/*.cc  .
    cp -i ../Evaluator/*.src .
    cp -i ../GenericFunctions/*.cc .
    cp -i ../Geometry/*.cc   .
    cp -i ../Matrix/*.cc     .
    cp -i ../Random/*.cc     .
    cp -i ../Random/*.src    .
    cp -i ../Random/*.cdat   .
    cp -i ../RandomObjects/*.cc .
    cp -i ../Vector/*.cc     .
    cp -i ../HepPDT/*.cc  .
    cp -i ../HepMC/*.cc  .
    cp -i ../StdHep/*.cc  .
    g++ -c -O -ansi -pedantic -Wall -D_GNU_SOURCE -fPIC -pthread -I../.. *.cc
    g++ -shared -pthread -o libCLHEP-g++.1.8.0.0.so *.o
SunOS:
    ...
    CC -c -O -KPIC -mt -I../.. *.cc
    CC -G -mt -o libCLHEP-CC.1.8.0.0.so -ldl -lCrun -lCstd *.o
OSF:
    ...
    cxx -c -O -std strict_ansi -shared -pthread -I../.. *.cc
    cxx -shared -pthread -o libCLHEP-cxx.1.8.0.0.so *.o

Installation of CLHEP on NT

First install UNIX environment Cygwin (bash shell) available from RedHat:
   http://sources.redhat.com/cygwin/
Then you can follow an ordinary installation procedure for UNIX:
    tar -zxvf clhep-1.8.0.0.tgz
    cd CLHEP
    ./configure
    make install prefix=...

Last update by Evgueni.Tcherniaev@cern.ch