Installing CRAB at IIHE
Jump to navigation
Jump to search
On SANPC
Login as cmssoft:
su - cmssoft
Make sure you are in the correct dir:
cd /msa3/crab
Download the latest tarball from http://cmsdoc.cern.ch/cms/ccs/wm/www/Crab/. Example:
wget http://cmsdoc.cern.ch/cms/ccs/wm/www/Crab/CRAB_1_4_2.tgz
Untar it:
tar -zxvf CRAB_1_4_2.tgz
Rename the directory:
mv CRAB_1_4_2 CRAB_1_4_2_IIHE
Change directory and backup cms_cmssw.py
cd CRAB_1_4_2_IIHE/python cp cms_cmssw.py cms_cmssw.py.orig
Apply the following patch (and adapt it if necessary):
patch -p0 <all_141.patch
Go back to the CRAB dir and run ./configure script:
cd .. ./configure
Change permissions:
chmod -R g+x CRAB_1_4_2_IIHE
Patch a new crab release
- add this line at the end of the crab.sh file
export PYTHONPATH=/opt/glite/lib/python/:$PYTHONPATH
and for the crab.csh file
setenv PYTHONPATH /opt/glite/lib/python/:$PYTHONPATH
- copy SOAPpy+fpconst to the BossPython repository
cp -rf /msa3/crab/CRAB_2_0_0/Boss/BOSS_4_3_8-ui3_1/BossPython/fpconst.py* /msa3/crab/CRAB_2_0_1/Boss/BOSS_4_3_8-ui3_1/BossPython/ cp -rf /msa3/crab/CRAB_2_0_0/Boss/BOSS_4_3_8-ui3_1/BossPython/SOAPpy/ /msa3/crab/CRAB_2_0_1/Boss/BOSS_4_3_8-ui3_1/BossPython/
- on the crab.py file comment out the line :
os.putenv("PATH", definePath("new") )
Create patches
version=1_5_3_pre3 cd /msa3/crab/CRAB_${version}_IIHE/python for i in cms_cmssw.py SchedulerEdg.py EdgConfig.py do diff -u /msa3/crab/CRAB_$version/python/$i $i > patch-$version-$i done
Apply patches
version=1_5_3 previous=1_5_3_pre3 cd /msa3/crab/CRAB_${version}_IIHE/python for i in cms_cmssw.py SchedulerEdg.py EdgConfig.py do cp $i ${i}-orig patch $i < /msa3/crab/CRAB_${previous}_IIHE/python/patch-$previous-$i done