- 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

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

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r2 - 2010-06-21 - LeszekGrzanka
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    TOTEM All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback