- Local installation of CMSSW framework
Some time ago I've found an instruction how to instruction how to install CMSSW on Ubuntu (and other distributions) which is quite similar to local installation of CMSSW on SLC linux.
There are two important sources of information:
http://pcbunn.cithep.caltech.edu/CMSSW_Install_Run.htm
https://twiki.cern.ch/twiki/bin/view/Main/AndreHolznerCMSSWonUbuntu
Here I will describe installation procedure for Ubuntu 9.10,
but I think you can try to use it with your favorite distribution.
1. Start tcsh shell
>
tcsh
2. Adjust locale settings
>
setenv LANG C
>
setenv LC_ALL C
3. Be sure that /bin/sh points to /bin/bash , not to /bin/dash (as described here
https://twiki.cern.ch/twiki/bin/view/Main/AndreHolznerCMSSWonUbuntu)
>
sudo dpkg-reconfigure dash
4. Follow the instructions from here:
http://pcbunn.cithep.caltech.edu/CMSSW_Install_Run.htm
:
>
mkdir /home/grzanka/usr/cmssw
>
cd /home/grzanka/usr/cmssw
>
setenv VO_CMS_SW_DIR /home/grzanka/usr/cmssw
>
setenv SCRAM_ARCH slc4_ia32_gcc345
>
wget -O $VO_CMS_SW_DIR/bootstrap.sh http://cmsrep.cern.ch/cmssw/cms/bootstrap.sh
Following step will take some time. Note "-unsupported_distribution_hack" switch which was not present during
usual offline installation of CMSSW on SLC :
>
sh -x $VO_CMS_SW_DIR/bootstrap.sh setup -path $VO_CMS_SW_DIR -arch $SCRAM_ARCH -unsupported_distribution_hack
Not that in following step apt version (0.5.15lorg3.2-cms5) could be not the same everytime, please check it:
>
source $VO_CMS_SW_DIR/$SCRAM_ARCH/external/apt/0.5.15lorg3.2-cms5/etc/profile.d/init.csh
>
apt-get update
Following step will install framework, might take some time (up to 1 hour), and consume up to 10 GB of disk space :
>
apt-get install cms+cmssw+CMSSW_3_1_1
And it is done !
If you want to use it, just adjust path and type (for bash!):
source /home/grzanka/usr/cmssw/cmsset_default.sh
6. In case of problems with rpmts order, you need to install few packages manually before installing CMSSW_3_1_1:
>
apt-get install external+gcc+3.4.5-cms
>
apt-get install lcg+root+5.22.00d-cms
>
apt-get install external+frontier_client+2.7.11 external+frontier_client+2.7.11-cms2
Moreover there is something weird with dependencies in CMS repo as CMSSW_3_1_1 is dependent on CMSSW_3_3_1
You may face error message like this:
ERROR: Release area "/home/users/berretti/SL/CMSSW311/slc4_ia32_gcc345/cms/pool/POOL_2_9_0_pre5-cms9" for "pool" is not available.
After that installation will finish like it was successful, but during TOTEM offline compilation you will see some libraries missing (like
/usr/bin/ld: cannot find -llcg_POOLCore
).
The solution is to reinstall
cms+cmssw+CMSSW_3_1_1
package using command:
>
apt-get install --reinstall cms+cmssw+CMSSW_3_1_1