%CERTIFY%

Distribution Kits on Ubuntu 9.10

Introduction

This page lists all necessary steps in order to install a ATHENA distribution kit on Ubuntu 9.1. This wiki is based on instructions found here but tailored for 9.1, 32 and 64 bit. I am assuming you have sudo rights...

A lot of the initial setup is the same as for previous versions of Ubuntu but is much easier!

I have the following aliases setup in my .bashrc file :

  • export ATLAS_LOCAL_ROOT_BASE=/athenainst/ATLASLocalRootBase
  • alias setupATLAS='source ${ATLAS_LOCAL_ROOT_BASE}/user/atlasLocalSetup.sh'

So if you see these commands at any point in the instructions these are what they refer to.

Pre-requisites

Open AFS

Not really needed unless you want to access the AFS mounted release areas or read/write to your home area on AFS. openafs packages exist in the synaptic package manager list. I installed the openafs-client, openafs-fileserver and openafs-modules. Setup instructions same as previous

Note I have not been able to get this to work fully. I can read the AFS area but both the use of AFS mounted athena releases at CERN or write access to my home area have bene problematic! Tips welcome

Extra sensible packages to have

You need for sure subversion, CVS. Please add if there are any others not mentioned in the "grid" section. Setup ssh and SVN access as per here.

GCC

This is the most important part to getting anything to work. Instructions as per here

64 bit

Note this was problematic for me on 64 bit. I had to do the following to compile mpfr and gmp at the same time (these aren't bash commands!):

  • extract gcc-4.3.2
  • extract mpfr-2.3.1
  • extract gmp-4.2.2.
  • move mpfr-2.3.1 to gcc-4.3.2/mpfr
  • move gmp-4.2.2 to gcc-4.3.2/gmp

within the gcc directory:

  • > ./configure --prefix=`pwd` --enable-languages=c,c++,fortran
  • > make
  • > make install

the create the scripts as per instructions

ATHENA Kit installation

By far the easiest way to do this is to use the excellent ManageTier3SW tools. You can find instruction on how to download the tools and set it up and use it to setup your releases and additional packages here.

You can now download 64 bit and or the 32 bit kits. The 64 ones work pretty much out of the box (although are limited to the base release). The 32 bits need some work to get the grid working

Problems downloading packages

If you are encountering some problems downloading packages with errors such as :

Error executing [tar -z -t -f /athenainst/ATLASLocalRootBase/x86_64/Athena/i686/15.6.3/Lhapdf_5_7_0_i686_slc5_gcc43_opt.tar.gz] returns status code [...<truncated by pacman>...b/libLHAPDF.so.0 

Ubuntu uses 9.1 tar 1.22, whereas slc5 has tar (GNU tar) 1.15.1. You need to manually download the older tar version and replace the one in /bin/tar. I have not had issues although it probably isn't the safest thing to do! Urgh!! Suggestions welcome...

Requirement file

You can create a requirement file for your Ubuntu setup using the createRequirements script packaged with the Tier3SW tools. I copied over my file from lxplus. Below is my working copy for reference:

set CMTSITE STANDALONE

apply_tag 32 (or 64 for 64 bit kits)
apply_tag setup
apply_tag opt
apply_tag slc5
apply_tag gcc43

macro PROJ_BASE_RELEASE "15.6.5" \
      15.6.5 "15.6.5" \

macro PROJ_RELEASE "$(PROJ_BASE_RELEASE)" \
      15.6.5.3 "15.6.5.3"

set SITEROOT /athenainst/ATLASLocalRootBase/x86_64/Athena/i686/${PROJ_BASE_RELEASE}
macro ATLAS_DIST_AREA ${SITEROOT}
use AtlasLogin AtlasLogin-* $(ATLAS_DIST_AREA)
set CMTCONFIG i686-slc5-gcc43-opt (x86_64-slc5-gcc43-opt for 64 bit kits)

Save in cmthome are and issue cmt config commands, etc as per usual ATLAS instructions. You can find cmt setup with the kit in

${ATLAS_LOCAL_ROOT_BASE}/x86_64/Athena//CMT//mgr/setup.sh

Using local kits

So to use simply setup the gcc compiler from the gcc setup script you created and source your cmthome/setup.sh file as per usual. gmake is replaced by make. Simple!

InputFilePeeker

In case you are having problems with the inputfilepeeker and autoconfiguration a solution is described here. I just update to the latest Tier3SW and was ok but I had changed a few things around previously.

Using the grid

Prerequisites

Using the grid is fine once a few basic steps have been done. To use GLite you need the following:

Install from repository (I presume you have cvs, svn, etc)

    openssh
    rpm  (for rpm2cpio)
    curl
    krb5-config
    krb5-clients

when prompted put in the following info:

       kpasswd_server = afskrb5m.cern.ch.
       admin_server = afskrb5m.cern.ch.

Then check your hostname (set in /etc/hostname, /etc/hosts)

(reboot)

Now

 > hostname -f

Must give you a fully qualified domain name. Lastly

cd /lib
ln -s libexpat.so.1 libexpat.so.0
cd /usr/lib
ln -s libldap-2.4.so.2 libldap-2.2.so.7

Setup scripts

setupgrid(){
        setupATLAS
        . ${ATLAS_LOCAL_ROOT_BASE}/packageSetups/atlasLocalGLiteSetup.sh  # needed for voms commands
        . ${ATLAS_LOCAL_ROOT_BASE}/packageSetups/atlasLocalPandaClientSetup.sh
        export LD_LIBRARY_PATH=/lib:$LD_LIBRARY_PATH # This solves a conflict in uuidgen
}

Then you can just do:

> setupmygccscript
> source ~/cmthome/setup.sh -tag=<allmytags>
> setupgrid
> cd <whereeveryouplanonrunningfrom>
> panda <allmyfavouriteoptions>

DQ2

Make sure you run DQ2 in a separate terminal to your release. From command line do:

> setupATLAS
> localSetupDQ2Client 
> voms-proxy-init -voms atlas

All DQ2 commands should work!

Still to figure out

Aside from the AFS problems. I haven't tried to setup eclipse to use the CMT plugin on 64 bit.

Updates/Errors

If you find any updates/errors to these pretty schematic instructions please feel free to modify the Wiki. I might also have forgotten a step! If you could drop me (Michele Petteni) an e-mail that would be great as well. Note I am not particularly adept at Ubuntu, linux admin, etc compared to many of you, yet I didn't find all of the steps too difficult to follow.

Hope this works for you.

-- MichelePetteni - 08-Mar-2010

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r2 - 2010-03-08 - unknown
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Sandbox All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2020 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