Setup the ds50 environment

On, various DS50 utility scripts are installed in the directory /ds50/app/ds50.
setup_ds50 must be sourced first; it sets the values of several important environment variables, makes the UPS products available, and does the (ups) setup of git:

To establish the basic DS50 working environment:

source /ds50/app/ds50/setup_ds50

We do not recommend adding this to your login scripts. Your home directory on ds50 is shared with fnalu, which DOES NOT have access to /ds50/app/ds50/setup_ds50

working with ups

In general, you will only need to setup a single product (e.g., setup darkart vx_y_z -q some_qualifiers).

To see a list of installed versions of some product, use ups list:

ups list -aK+ geant4
ups list -aK+ geant4 v4_9_6_p01a
"geant4" "v4_9_6_p01a" "Linux64bit+2.6-2.12" "e2:prof" "" 
"geant4" "v4_9_6_p01a" "Linux64bit+2.6-2.12" "debug:e2" "" 
setup geant4 v4_9_6_p01a -q e2:debug

Notice that qualifiers must be specified, but their order may be changed.

To see all products currently setup, use the ups active command:

# ups active
Active ups products:
clhep             v2_1_3_1        -f Linux64bit+2.6-2.12  -q debug:e2       
g4emlow           v6_32           -f NULL                
g4neutron         v4_2            -f NULL                
g4neutronxs       v1_2            -f NULL                
g4nucleonxs       v1_1            -f NULL                
g4photon          v2_3            -f NULL                
g4pii             v1_3            -f NULL                
g4radiative       v3_6            -f NULL                
g4surface         v1_0            -f NULL                
gcc               v4_7_1          -f Linux64bit+2.6-2.12 
geant4            v4_9_6_p01a     -f Linux64bit+2.6-2.12  -q debug:e2       
gitflow           v0_4_1          -f NULL                
git               v1_8_0_1        -f Linux64bit+2        
/afs/                  -f                     
setpath           v1_11           -f NULL                
shrc              v1_10           -f Linux+2             
ups               v4_9_7          -f Linux64bit+2.6-2.12 
xerces_c          v3_1_1          -f Linux64bit+2.6-2.12  -q debug:e2       

To see the dependencies of some product, use the ups depend command:

# ups depend geant4 v4_9_6_p01a -q e2:debug
geant4 v4_9_6_p01a -f Linux64bit+2.6-2.12 -z /ds50/app/products -q debug:e2
|__clhep v2_1_3_1 -f Linux64bit+2.6-2.12 -z /ds50/app/products -q debug:e2
|  |__gcc v4_7_1 -f Linux64bit+2.6-2.12 -z /ds50/app/products
|__xerces_c v3_1_1 -f Linux64bit+2.6-2.12 -z /ds50/app/products -q debug:e2
|__g4emlow v6_32 -f NULL -z /ds50/app/products
|__g4neutron v4_2 -f NULL -z /ds50/app/products
|__g4neutronxs v1_2 -f NULL -z /ds50/app/products
|__g4nucleonxs v1_1 -f NULL -z /ds50/app/products
|__g4photon v2_3 -f NULL -z /ds50/app/products
|__g4pii v1_3 -f NULL -z /ds50/app/products
|__g4radiative v3_6 -f NULL -z /ds50/app/products
|__g4surface v1_0 -f NULL -z /ds50/app/products