TWiki
>
IT Web
>
CommonlyUsedSoftware
>
CLHEP
(2009-02-13,
AndrewPickford
)
(raw view)
E
dit
A
ttach
---+ CLHEP [[http://proj-clhep.web.cern.ch/proj-clhep/][CLHEP]] version 1.9.3.1 has been compiled and is available to LINUX desktop users over NFS. ---++ Using CLHEP CLHEP is currently installed for 32 bit sl4 desktops. ---+++ Setting up environmental variables Check your default shell by typing <pre> echo $SHELL </pre> If your default shell is <code>/bin/bash</code> then append <pre> 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 </pre> to <code>~/.bashrc</code> If your default shell is <code>/bin/tcsh</code> then append <pre> 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 </pre> to <code>~/.cshrc</code> ---+++ Building executables against CLHEP Compile C++ source code via statements of the form: <pre> g++ -I$(CLHEP_DIR)/include -c file.cc </pre> Link resulting objects by using a statement of the form: <pre> g++ -L$(CLHEP_DIR)/lib -lCLHEP -o exename </pre> -- Main.AndrewPickford - 13 Feb 2009
E
dit
|
A
ttach
|
Watch
|
P
rint version
|
H
istory
: r1
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r1 - 2009-02-13
-
AndrewPickford
IT
Log In
or
Register
IT Web
Create New Topic
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
Webs
ATLAS
PUUKA
DetDev
Gridmon
IT
LHCb
LinearCollider
Main
NA62
Sandbox
TWiki
Copyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback