Installing CMSSW at IIHE
Go to a worker node. This is mandatory for slc4!
su - cmss
Il faut probablement dabord faire:
cp /swmgrs/cmss /swmgrs/cmss_old mkdir /swmgrs/cmss
PUIS:
export VO_CMS_SW_DIR=/swmgrs/cmss export SCRAM_ARCH=slc4_ia32_gcc345 export LANG="C" cd $VO_CMS_SW_DIR
wget -O $VO_CMS_SW_DIR/bootstrap.sh http://cmsrep.cern.ch/cmssw/cms/bootstrap.sh mkdir /tmp/$USER sh -x $VO_CMS_SW_DIR/bootstrap.sh setup -unsupported_distribution_hack -path $VO_CMS_SW_DIR -arch $SCRAM_ARCH >& $VO_CMS_SW_DIR/bootstrap_$SCRAM_ARCH.log
source $VO_CMS_SW_DIR/$SCRAM_ARCH/external/apt/<apt-version>/etc/profile.d/init.sh ## je ne connais pas la version apt qui sera téléchargé apt-get update
Pour être sure que ca a marché, installe une version de CMSSW:
apt-cache search cmssw
apt-get install cms+cmssw+CMSSW_2_1_7 ## version utilise par jobrobot.
Si celle la a marcher, installe 2_2_13 et un mail a petra pour lui dire de reinstaller le tout.
For error rpm-wrapper returned an error code (153) install before following package
apt-get install external+fakesystem+1.0 apt-get install external+fakesystem+1.0-cms
If not yet the case copy env_glite31.(c)sh files from a backup place to /sandbox/cmss:
cp /sandbox/cmss_Shkelzen/env_glite31.* /sandbox/cmss/
Il manque encore les SITECONF:
mkdir -p /swmgrs/cmss/SITECONF/local cp /swmrgs/cmss_old/SITECONF/T2_BE_IIHE/p.tar /swmgrs/cmss/SITECONF/local cd /swmgrs/cmss/SITECONF/local tar -xf p.tar
Il faut patcher libDCache.rootmap dans les versions les plus anciennes Exemple : /swmgrs/cmss/slc4_ia32_gcc345/lcg/root/5.18.00a-cms21/lib/libDCache.rootmap Contenu attendu :
cat /swmgrs/cmss/slc4_ia32_gcc345/lcg/root/5.22.00d-cms4/lib/libDCache.rootmap Library.TDCacheFile: libDCache.so libRIO.so Library.TDCacheSystem: libDCache.so libRIO.so
OBSOLETE =
OBSOLETE =
OBSOLETE =
OBSOLETE =
on grid cluster
- login on WN
- do
su - cmss export SCRAM_ARCH=slc4_ia32_gcc345 export TMPDIR=/scratch/cmss mkdir -p $TMPDIR
- follow procedure at https://twiki.cern.ch/twiki/bin/view/CMS/CMSSW_aptinstaller#Installing_and_updating_software
On master3 (previously on fileserv)
For CMS users
- Login as cmss:
su - cmss
- Make sure you are in the correct dir:
cd /swmgrs/cmss
- Then:
export VO_CMS_SW_DIR=$PWD
- In our site we need to initialise some environment variables. For that just run this:
source init.sh
- Here is the content of this file:
#!/bin/sh if [ -z $VO_CMS_SW_DIR ] then echo "VO_CMS_SW_DIR not set. Exiting..." exit 1 fi if [ -z $LD_LIBRARY_PATH ]; then export LD_LIBRARY_PATH=$VO_CMS_SW_DIR/sl3/usr/lib else export LD_LIBRARY_PATH=$VO_CMS_SW_DIR/sl3/usr/lib:$LD_LIBRARY_PATH fi export PATH=$VO_CMS_SW_DIR/sl3/bin:$VO_CMS_SW_DIR/sl3/usr/bin:$PATH export SCRAM_ARCH=slc3_ia32_gcc323
- Go ahead with some more commands:
eval <tt>$VO_CMS_SW_DIR/aptinstaller.sh config -path $VO_CMS_SW_DIR</tt> apt-get update
- To avoid mismatch between SCRAMV1 V1_0_2 and V1_0_3
apt-get dist-upgrade apt-get reinstall lcg+SCRAMV1+V1_0_2
- Check the version of CMSSW you need by using:
apt-cache search cmssw
- Finally, install it with the following command if the version you want is CMSSW_1_2_0:
apt-get install cms+cmssw+CMSSW_1_2_0
For BECMS users
- Login as becmss:
su - becmss
- Make sure you are in the correct dir:
cd /swmgrs/becmss/cms
- Make a symlink of the last downloaded rpm
ln -s /swmgrs/cmss/RPMS/slc3_ia32_gcc323/cms+cmssw+CMSSW%5f1%5f2%5f2_1-1089_i386.rpm /swmgrs/becmss/cms/RPMS/slc3_ia32_gcc323/cms+cmssw+CMSSW%5f1%5f2%5f2_1-1089_i386.rpm
- Then:
export VO_CMS_SW_DIR=$PWD
- Following steps as in section For CMS users.
On SANPC
- Login as cmssoft:
su - cmssoft
- Make sure you are in the correct dir:
cd /msa3/cmssoft
- Then:
export VO_CMS_SW_DIR=$PWD
DO NOT RUN:
source init.sh
- Following steps as in section For CMS users.
Troubleshooting
- If commands such as 'apt-get update' or 'apt-get install cms+cmssw+CMSSW_X_Y_Z' hang up, kill the corresponding process, run
rm -f $VO_CMS_SW_DIR/var/lib/rpm/__db.*
and again
apt-get update
Validate the installation
From a UI (eg. master2.iihe.ac.be) or a public PC (eg. lxpub2.iihe.ac.be)
- If not done yet make sure this environment is set:
setenv VO_CMS_SW_DIR /msa3/cmssoft source $VO_CMS_SW_DIR/cmsset_default.csh
- List the installed versions of CMSSW to check if the last one is there
scramv1 list | grep CMSSW
- Create a project for this last version installed
scramv1 p CMSSW CMSSW_1_2_0 cd CMSSW_1_2_0/src eval <tt>scramv1 runtime -csh</tt>
- Define the code cvs repository
alias cmscvsroot 'source $CMS_PATH/utils/cmscvsroot.csh' cmscvsroot CMSSW
- Log onto the cvs code server; type 98passwd as password
cvs login CVS password:
- Checkout the source code of the libraries that you want to use or modify. Here we will use the interface to the Pythia event generator
cvs co -r CMSSW_1_2_0 IOMC/GeneratorInterface/test; cd IOMC/GeneratorInterface/test
- Compile the code
scramv1 b
- Let's run the standard example which produces Higgs events decaying into 4 muons in the final state, and plots a few distributions:
cmsRun pythiaHZZ4mu+analysis.cfg
You should see two root files appear: one with the generated events stored in HepMC format, and one with the distribution histograms.
- In the CE, publish the version newly installed. For that edit and add new the version of CMSSW for both cms and becms:
vi /opt/edg/var/info/cms/cms.list vi /opt/edg/var/info/becms/becms.list
on master (slc45 x86_64)
- see main cms instructions
- go to correct path and set env
su - cmssoft cd /msa3/cmssoft2 export VO_CMS_SW_DIR=$PWD
- if new install
wget -O $VO_CMS_SW_DIR/aptinstaller.sh http://cmsdoc.cern.ch/cms/cpt/Software/download/cms/aptinstaller.sh chmod +x $VO_CMS_SW_DIR/aptinstaller.sh $VO_CMS_SW_DIR/aptinstaller.sh setup -path $VO_CMS_SW_DIR -arch slc4_ia32_gcc345 $VO_CMS_SW_DIR/aptinstaller.sh setup -path $VO_CMS_SW_DIR -arch slc3_ia32_gcc323
- make sure to install the necessary scram versions first.
eval <tt>$VO_CMS_SW_DIR/aptinstaller.sh config -path $VO_CMS_SW_DIR -sh -arch slc4_ia32_gcc345</tt> apt-get update apt-get install cms+cms-cvs-utils+1.0 apt-get install lcg+SCRAMV1+V1_0_3 apt-get install lcg+SCRAMV1+V1_0_3-p1 apt-get install external+gcc-wrapper+3.4.5m32 eval <tt>$VO_CMS_SW_DIR/aptinstaller.sh config -path $VO_CMS_SW_DIR -sh -arch slc3_ia32_gcc323</tt> apt-get update apt-get install cms+cms-cvs-utils+1.0 apt-get install lcg+SCRAM+V0_20_0 apt-get install lcg+SCRAMV1+V1_0_1 apt-get install lcg+SCRAMV1+V1_0_2 apt-get install lcg+SCRAMV1+V1_0_3 apt-get install lcg+SCRAMV1+V1_0_3-p1
- normally, only do:
- for CMSSW >= 150 (SL4 based only):
unset SCRAM_ARCH unset BUILD_ARCH eval <tt>$VO_CMS_SW_DIR/aptinstaller.sh config -path $VO_CMS_SW_DIR -sh -arch slc4_ia32_gcc345</tt> apt-get update
- for CMSSW < 150 (SL3 based only):
export SCRAM_ARCH=slc3_ia32_gcc323 export BUILD_ARCH=slc3_ia32_gcc323 eval <tt>$VO_CMS_SW_DIR/aptinstaller.sh config -path $VO_CMS_SW_DIR -sh -arch slc3_ia32_gcc323</tt> apt-get update apt-cache search cmssw apt-get install some_version ... apt-get install some_version5 unset SCRAM_ARCH unset BUILD_ARCH
- search correct release
IIHE notes
- initial install on 24/07/07
- update apt version
- following official instructions
- fix SOAPpy errors with CRAB,CMSSW150 and glite31UI+sl4
rpm -Uvh --dbpath $VO_CMS_SW_DIR/slc4_ia32_gcc345/var/lib/rpm/ --relocate /usr=$VO_CMS_SW_DIR/slc4_ia32_gcc345/external/python/2.4.2/ --nodeps --define "_rpmlock_path $VO_CMS_SW_DIR/slc4_ia32_gcc345/var/lib/rpm/lock" python24-soappy-0.11.6-1.py24.noarch.rpm python24-fpconst-0.7.1-1.py24.noarch.rpm