You will need to have a CERN AMS account and access to ams.cern.ch. Please ask Alexei Klimentov, Alexei.Klimentov@cern.ch (if you do not know him, make sure to get authorization from someone in the collaboration). You will also need access to the CERN AMS Linux PC's, e.g. pcamsf2. You can find general AMS software and computing information on the AMS Computing page and the the AMS-02 Software page.
Now, to install:
Access is granted to anyone having an account on ams.cern.ch and/or who is a member of cernva, cernxv groups.
setenv CVS_SERVER "env LOGNAME=${USER} cvs" setenv CVSROOT :pserver:amscvs@ams.cern.ch:/amsdat2/SW/cvsroot cvs login ( Username: amscvs Password: can be found on ams.cern.ch in ~ams/cvsams/.cvsams ) cvs checkout AMS
This will get you a copy of the code for the AMS readonly tree, which is mirrored every day. If you are not a developer and only want to run the software, then this is the repository to use. If, on the other hand, you wish to be a developer (i.e. you want to commit code to the repository), then please inform Vitaly Choutko, v.choutko@cern.ch. In this case, it is best to use AFS.
pagsh klog -cell cern.ch -principal (userid) export CVSROOT=/afs/cern.ch/exp/ams/Offline/CVS cvs checkout AMS
Copy pcamsf2.cern.ch:/usr/include/dirent.h to the include subdirectory in your repository tree.
gmake -f Mopt_Root
This should compile everything, but will still need naglib to link if you do not have a local purchased version. To make naglib available via AFS:
pagsh
then
klog -cell cern.ch -principal (userid)
and you should be able to see your private AFS files at CERN.
For Geant 4 executables, in the install subdirectory, first
source g4i
gmake -f Moptg4