2008年8月19日星期二

在64位机器上安装CMSSW

安装framework:
tcsh
setenv VO_CMS_SW_DIR $PWD
setenv SCRAM_ARCH slc4_ia32_gcc345
setenv LANG "C"
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 -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/0.5.15lorg3.2-CMS19c/etc/profile.d/init.csh
apt-get update
apt-get install cms+cmssw+CMSSW_2_0_0_pre8
创建工作环境:
mkdir cms_work
source cmsset_default.sh
eval `scramv1 runtime -sh`
scramv1 list看一下可用的cmssw版本
scram p CMSSW CMSSW_x_y_z
go to the src directory and create a subdirectory and cd into it
Run mktsel
Edit the code
修改config/Buildfile.xml,参见https://twiki.cern.ch/twiki/bin/view/CMS/HamburgWikiComputingLocal#Compiling_CMSSW_with_the_slc3_Ar
Compile using scram b(之前需要先修改buildfile添加一些依赖关系,比如root)
Add gSystem->Load("/FULL/path/to/libNameOfYourSelector.so") to your rootlogon.C
in ROOT, connect to PROOF and then run chain->SetProof(); chain->Process("NameOfYourSelector")

没有评论:

发表评论