|
|
Installing ROOT via UPS/UPD
With UPS/UPD now available it's possible to install ROOT:
> .
~products/etc/setups.sh
(under
bash shell)
>
source ~products/etc/setups.csh (under c-shell)
> setup
upd
It's always a good idea to check which versions of a given package are available for Linux. Execute the command:
> upd list -aK+ root | grep -i linux
(In the above example, -a specifies all instances of the product, K+ specifies a condensed listing, and 'grep -i linux' limits the search to Linux versions. See the UPS/UPD manual for other options.) The output produces a listing of program & compiler versions, GCC (gnu) vs. KCC (kai). (Click here for a discussion of compiler options when installing products, courtesy Alan Jonckheere.)
To install the current version (as of early January 2002) execute the command:
> upd install root v3_01_06a -q KCC_4_0:exception:opt:thread -G'-c'
(-q KCC_4_0:exception:opt:thread are compiler options, while -G'-c' 'declare' or make the new product known to the UPS database). Also execute:
> upd
install cern 2000 -G'-c'
>
upd install stdhep v4_10 -G'-c'
>
upd install kailib v4_0_f -G'-c'
At this point you're ready to run ROOT:
> setup
root v3_01_06a -f Linux+2.2 -q KCC_4_0:exception:opt:thread
> setup
kailib v4_0_f -f Linux+2.2
As a check, type:
> echo
$ROOTSYS
This should
return:
/fnal/ups/prd/root/Linux-2-2/v3_01_06aKCC_4_0-exception-opt-thread
> echo
$LD_LIBRARY_PATH
This should
return (at a minimum, plus additional entries depending on other packages
that may be installed):
/fnal/ups/prd/kailib/Linux-2-2/v4_0_f/lib
Finally, at the command prompt:
> root
runs the program.
Questions/comments? Contact Mark
Sosebee
Last updated February 7, 2002