Notes on running CMSSW on ubuntu hardy heron

  • on ubuntu, by default, when running scramv1, one sees errors like
        [: 71: ==: unexpected operator
    This is due to the fact that /bin/sh is linked to /bin/dash instead of /bin/bash (see also this link). One can set this back to bash by running sudo dpkg-reconfigure dash and selecting the appropriate answer.
  • scramv1 complained about missing Doing sudo apt-get install libtemplate-perl seems to make this warning go away.
  • At least with CMSSW_1_6_12, scramv1 b did not build anything even though it should have. Running scramv1 --debug b showed that it wanted to run gmake which does not exist on ubuntu. A softlink ~/bin/gmake -> /usr/bin/make (where ~/bin is in the path) made the building work.
  • To get from cmstools import * or import readline to work: After creating the project area (assuming python2.4 is configured for the CMSSW version), softlink it from the local python installation, e.g. by doing:
        ln -s /usr/lib/python2.4/lib-dynload/ $CMSSW_BASE/lib/$SCRAM_ARCH/

Running OpenAFS on ubuntu

  • To start openafs, do sudo /etc/init.d/openafs-client start. If the OpenAFS kernel module does not exist (for the kernel version in use), this will complan.

  • To build the OpenAFS kernel module, follow the instructions in /usr/share/doc/openafs-client/README.modules which are essentially the following ones:
           sudo apt-get install module-assistant
           sudo module-assistant prepare openafs-modules
           sudo module-assistant auto-build openafs-modules
    You should get a message like: Done with /usr/src/openafs-modules-....deb. Install this deb file using sudo dpkg -i /usr/src/openafs-modules-....deb.

Note that this needs to be redone when you install a new kernel version.

Running kerberized CVS

  • make sure the package krb5-user is installed (for kinit)
  • Make sure /etc/krb.conf exists and contains the appropriate lines for CERN. If it doesn't exist, it's probably easiest to copy it from lxplus/lx32slc4.
  • Copy /etc/krb5.conf and /etc/krb.realms from lxplus/lx32slc4 after making a backup of your existing /etc/krb5.conf and /etc/krb.realms. (yes, it looks like we need krb5 files despite only getting a ticket for krb4...)

  • Copy /usr/bin/cvs from lxplus/lx32slc4 and make sure you put it in a directory where it is found before the standard cvs (e.g. into ~/bin and make sure that ~/bin comes before /usr/bin/ in your PATH).

  • Get a token using kinit -4 xyz@CERN.CH .
  • work with CVS


  • make sure you have a file /etc/redhat-release. If not, copy it from lxplus.
  • setup the environment (for bash/zsh):
    source /afs/
    eval `scramv1 runtime -sh`
    source /afs/
(see also here).

  • in order to get voms-proxy-init to work, one needs (e.g. /usr/lib/ from lx32slc4= in my case). I copied this into the directory from which I submit the crab jobs and added $PWD at the end of the environment variable LD_LIBRARY_PATH.


Personal remarks

The following are not related to Ubuntu in general but more to my personal configuration.

  • The auto library loader under root (FWLite) seems not to work in my (default) setup, this seems to be due to spurious libraries in the LD_LIBRARY_PATH. I get:
    Error: Symbol G__exception is not defined in current scope  (tmpfile):1:
    Executing the following seems to fix it:
           export LD_LIBRARY_PATH=$(echo $LD_LIBRARY_PATH | tr ':' '\n' | grep -E "/afs/|$CMSSW_BASE" | tr '\n' ':' )


  • For my machine, copy binaries from lx32slc4, not from lxplus

-- AndreHolzner - 10 Jul 2008


Edit | Attach | Watch | Print version | History: r12 | r10 < r9 < r8 < r7 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r8 - 2008-07-20 - AndreHolzner
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Main All webs login

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