CLHEP version 1.9.3.1 has been compiled and is available to LINUX desktop users over NFS.
CLHEP is currently installed for 32 bit sl4 desktops.
Setting up environmental variables
Check your default shell by typing
echo $SHELL
If your default shell is
/bin/bash
then append
if [ -z $CLHEP_DIR ]; then
CLHEP_DIR=/data/ppe01/sl4x/i386/clhep/1.9.3.1
export CLHEP_DIR
if [ -z "$LD_LIBRARY_PATH" ]; then
LD_LIBRARY_PATH=$CLHEP_DIR/lib
export LD_LIBRARY_PATH
else
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CLHEP_DIR/lib
export LD_LIBRARY_PATH
fi
fi
to
~/.bashrc
If your default shell is
/bin/tcsh
then append
if ( ! $?CLHEP_DIR ) then
setenv CLHEP_DIR /data/ppe01/sl4x/i386/clhep/1.9.3.1
if ( ! $?LD_LIBRARY_PATH ) then
setenv LD_LIBRARY_PATH $CLHEP_DIR/lib
else
setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:$CLHEP_DIR/lib
fi
fi
to
~/.cshrc
Building executables against CLHEP
Compile C++ source code via statements of the form:
g++ -I$(CLHEP_DIR)/include -c file.cc
Link resulting objects by using a statement of the form:
g++ -L$(CLHEP_DIR)/lib -lCLHEP -o exename
--
AndrewPickford - 13 Feb 2009