James Werner
BABAR Software Installation from scratch
ssh -l jamwer bfb.tier2
Getting tokens for AFS areas at SLAC and Manchester:
klog babar -cell hep.man.ac.uk
klog jamwer -cell slac.stanford.edu
tokens
Tokens held by the Cache Manager:
User's (AFS ID 24458) tokens for afs@hep.man.ac.uk [Expires Oct 23 10:02]
User's (AFS ID 8288) tokens for afs@slac.stanford.edu [Expires Oct 23 10:02]
--End of list--
Defining the environment variables
export BFROOT=/afs/hep.man.ac.uk/g/babar
cd $BFROOT
export BFAFS=/afs/slac.stanford.edu/g/babar
export BFDISTr=$BFAFS/dist
export PATH=$PATH:$BFAFS/bin
export BFDIST=$BFROOT/dist
mkdir -p $BFDIST/releases
mkdir -p $BFDIST/packages
mkdir -p $BFROOT/bin
mkdir -p $BFROOT/etc
mkdir -p $BFROOT/lib
ls
bin dist etc lib
ls dist
packages releases
Creating symbolic links for remote directories
cd $BFROOT
ln -s $BFAFS/simu simu
Kanga will not be remote due our file system configuration:
ls $BFAFS/kanga
CondDB EventStore EventStore.old config
mkdir -p $BFROOT/kanga
ln -s $BFAFS/data data
ln -s $BFAFS/products products
ln -s $BFAFS/Bdb Bdb
Download bin
Download contents of $BFROOT/bin from SLAC CVS Repository to
local system $BFROOT/bin area using CVS checkout procedure.
cvs -d /afs/slac.stanford.edu/g/babar/repo co bin
cvs checkout: Updating bin
U bin/BbkDatasetHistory
U bin/BbkDatasetTcl
...
cvs checkout: Updating bin/site
cvs checkout: Updating bin/site/slac
U bin/site/slac/LocateForImport
Downloading specific releases for the site
The download takes 3 days. It can be performed using the following script:
cat inst.sh
importrel -pa 12.5.2
importrel -pab 12.5.2
importarch -p 12.5.2 Linux24 >> inst.log
echo "=============================================" >> inst.log
echo "Installing 12.5.2-Physics-1a" >> inst.log
echo "=============================================" >> inst.log
importrel -pa 12.5.2-physics-1a >> inst.log
importrel -pab 12.5.2-physics-1a >> inst.log
importarch -p 12.5.2-physics-1a Linux24 >> inst.log
echo "==============================================" >> inst.log
echo " Installing 14.5.2 " >> inst.log
echo "==============================================" >> inst.log
importrel -pa 14.5.2 >> inst.log
importrel -pab 14.5.2 >> inst.log
importarch -p 14.5.2 Linux24 >> inst.log
Installing 12.5.2
importrel -pa 12.5.2
importrel version: 1.8
Note: If you get 'AFS connection timeout' error, try SSH transfer instead.
won't copy lib and bin over since you don't have ksh
run importarch to copy them over
cd /afs/slac.stanford.edu/g/babar/dist/releases/12.5.2; gtar cf - .current .finished .glimpse_filenames
... trgDC trgFrame unt vcs workdir | gtar xf -
copying packages...
importver -p AbsBTagging V00-02-02
importver -p AbsCalo V00-04-23
...
importver -p QtrTools V00-01-00
importver -p RandControl V00-02-03
importver -p RawDataStatus V00-01-04
importver -p RdfCommon V00-00-15
There was a time out problem here, and the procedure was re-started using option -pab.
importrel -pab 12.5.2
...
importver -p RdfCommon V00-00-15
Package RdfCommon already has version V00-00-15 here
importver -p RdfTools V00-01-12
importver -p RdsDataP V00-03-00
importver -p RdsModules V00-00-06
...
importver -p vcs V00-00-02
importver -p workdir V00-04-11
importarch -p 12.5.2 Linux24
importarch version: 1.8
*) Try SSH transfer if you get 'AFS connection timeout' error
*) Try 'importarch -p lib bin ...' to specify directories.
*) Try -x option to filter out test binaries from bin/
*) Try -d option to see command executed.
*) You can run importarch again to fix failed segments.
Transfer bin/Linux24
Transfer lib/Linux24
Transfer tmp/Linux24
Transfer test/Linux24
shlib/Linux24 has been imported, skip it. (use -f to redo)
shtmp/Linux24 has been imported, skip it. (use -f to redo)
Transfer .spec*
NOTE: now run 'gmake siteinstall' from release to install scripts.
You need to run one siteinstall for each BFARCH.
(For older release without siteinstall, run 'gmake binscript')
All segments were imported successfully.
Installing 12.5.2-Physics-1a
importrel -pa 12.5.2-physics-1a
importrel version: 1.8
Note: If you get 'AFS connection timeout' error, try SSH transfer instead.
won't copy lib and bin over since you don't have ksh
run importarch to copy them over
cd /afs/slac.stanford.edu/g/babar/dist/releases/12.5.2-physics-1a; gtar cf - .current .current~ .dbxinit .gdbinit .spec-Linux24 ... linkrel.log man mcfio minuit++ photos pythia results shlib shtmp slap squaw stdhep tagFile tauola trgDC trgFrame unt vcs workdir | gtar xf -
copying packages...
reset BASE: ln -s /afs/hep.man.ac.uk/g/babar/dist/releases/12.5.2 BASE
importver -p AbsBTagging V00-02-02
Package AbsBTagging already has version V00-02-02 here
importver -p AbsCalo V00-04-23
Package AbsCalo already has version V00-04-23 here
...
importver -p trgFrame V01-00-20
Package trgFrame already has version V01-00-20 here
importver -p unt V00-02-09
Package unt already has version V00-02-09 here
importver -p vcs V00-00-02
Package vcs already has version V00-00-02 here
importrel -pab 12.5.2-physics-1a
importrel version: 1.8
Note: If you get 'AFS connection timeout' error, try SSH transfer instead.
won't copy lib and bin over since you don't have ksh
run importarch to copy them over
cd /afs/slac.stanford.edu/g/babar/dist/releases/12.5.2-physics-1a; gtar cf - .current .current~ .dbxinit .gdbinit .spec-Linux24 ... tauola trgDC trgFrame unt vcs workdir | gtar xf -
copying packages...
reset BASE: ln -s /afs/hep.man.ac.uk/g/babar/dist/releases/12.5.2 BASE
importver -p AbsBTagging V00-02-02
Package AbsBTagging already has version V00-02-02 here
importver -p AbsCalo V00-04-23
Package AbsCalo already has version V00-04-23 here
importver -p AbsEnv V00-04-18
Package AbsEnv already has version V00-04-18 here
...
importver -p trgFrame V01-00-20
Package trgFrame already has version V01-00-20 here
importver -p unt V00-02-09
Package unt already has version V00-02-09 here
importver -p vcs V00-00-02
Package vcs already has version V00-00-02 here
importarch -p 12.5.2-physics-1a Linux24
importarch version: 1.8
*) Try SSH transfer if you get 'AFS connection timeout' error
*) Try 'importarch -p lib bin ...' to specify directories.
*) Try -x option to filter out test binaries from bin/
*) Try -d option to see command executed.
*) You can run importarch again to fix failed segments.
Transfer bin/Linux24
Transfer lib/Linux24
Transfer tmp/Linux24
Transfer test/Linux24
Transfer shlib/Linux24
Transfer shtmp/Linux24
Transfer .spec*
NOTE: now run 'gmake siteinstall' from release to install scripts.
You need to run one siteinstall for each BFARCH.
(For older release without siteinstall, run 'gmake binscript')
All segments were imported successfully.
Installing 14.5.2
importrel -pa 14.5.2
importrel version: 1.8
Note: If you get 'AFS connection timeout' error, try SSH transfer instead.
won't copy lib and bin over since you don't have ksh
run importarch to copy them over
cd /afs/slac.stanford.edu/g/babar/dist/releases/14.5.2; gtar cf - .current .finished .gdbinit .glimpse_exclude .glimpse_filenames ... std_input.db stdhep tauola trgDC trgFrame unt vcs workdir | gtar xf -
copying packages...
importver -p AbsBTagging V00-02-04
importver -p AbsCalo V00-05-00
importver -p AbsEnv V00-05-00
importver -p AbsEvent V01-02-11
Package AbsEvent already has version V01-02-11 here
importver -p AbsEventTag V00-00-11
Package AbsEventTag already has version V00-00-11 here
importver -p AbsParm V00-05-02
importver -p AbsPid V00-04-12
...
importver -p tauola V00-00-14
importver -p trgDC V00-10-82
importver -p trgFrame V01-00-20
Package trgFrame already has version V01-00-20 here
importver -p unt V00-02-09
Package unt already has version V00-02-09 here
importver -p vcs V00-00-02
Package vcs already has version V00-00-02 here
importver -p workdir V00-04-15
importrel -pab 14.5.2
Several messages about gtar trying to unpack a file that already exists when running 14.5.2 with option -pab:
gtar: shtmp/SunOS58_sparc_WS6U1/KanTransfer/SunWS_cache: Cannot open: File exists
gtar: shtmp/SunOS58_sparc_WS6U1/KanUtils/shobj/SunWS_cache: Cannot open: File exists
importrel version: 1.8
Note: If you get 'AFS connection timeout' error, try SSH transfer instead.
won't copy lib and bin over since you don't have ksh
run importarch to copy them over
cd /afs/slac.stanford.edu/g/babar/dist/releases/14.5.2; gtar cf - .current .finished .gdbinit .glimpse_exclude .glimpse_filenames ... trgFrame unt vcs workdir | gtar xf -
copying packages...
importver -p AbsBTagging V00-02-04
Package AbsBTagging already has version V00-02-04 here
importver -p AbsCalo V00-05-00
Package AbsCalo already has version V00-05-00 here
...
importver -p unt V00-02-09
Package unt already has version V00-02-09 here
importver -p vcs V00-00-02
Package vcs already has version V00-00-02 here
importver -p workdir V00-04-15
Package workdir already has version V00-04-15 here
importarch -p 14.5.2 Linux24
importarch version: 1.8
*) Try SSH transfer if you get 'AFS connection timeout' error
*) Try 'importarch -p lib bin ...' to specify directories.
*) Try -x option to filter out test binaries from bin/
*) Try -d option to see command executed.
*) You can run importarch again to fix failed segments.
Transfer bin/Linux24
Transfer lib/Linux24
Transfer tmp/Linux24
Transfer test/Linux24
Transfer shlib/Linux24
Transfer shtmp/Linux24
Transfer .spec*
NOTE: now run 'gmake siteinstall' from release to install scripts.
You need to run one siteinstall for each BFARCH.
(For older release without siteinstall, run 'gmake binscript')
All segments were imported successfully.
Atencao: Os releases 14.5.2 , 12.5.2, etc sao chamados releases base.
Haverao outros como 14.5.2d que adicionam e corrigem funcoes.
Depois de baixar o diretorio bin dar o comando:
BbkDatasetTcl -help
Aparecera uma mensagem dizendo que o release 14.5.2d deve estar faltando.
Isto acontece porque o bin contem apenas cascas que chamam os executaveis
propriamente dito no release final. Este release deve ser instalado no ambiente.
Top