Installing GRID software

This is a guide to installing gLite 3.2.2 on (K)Ubuntu 8.04.

There is some instructions about installing gLite on these sites:

But it doesn't go into enough detail, so I started my own page detailing how to install the glite software.

I'm making a separate page for Network Tuning.

Get the tar balls from


Untar the two files

mkdir grid
cd grid
tar -zxf ../glite-UI-3.2.2-0.tar.gz
tar -zxf ../glite-UI-3.2.2-0-external.tar.gz

Create a softlink to libexpat:

ln -s /usr/lib/ grid/external/usr/lib/ (does this work? only on 32bit systems?)
ln -s /usr/lib/ grid/external/usr/lib64/

Create softlinks to libssl and libcrypt:

ln -s /usr/lib/ grid/external/usr/lib/ (does this work? only on 32bit systems?)
ln -s /usr/lib/ grid/external/usr/lib/ (does this work? only on 32bit systems?)
ln -s /usr/lib/ grid/external/usr/lib64/
ln -s /usr/lib/ grid/external/usr/lib64/

Please note that depending on your exact OS, you might need a newer version of OpenSSL and link to that instead. (see below)

Create a softlink to libldap:

ln -s grid/external/usr/lib64/ /usr/lib/

Install rpm related tools:

apt-get install rpm
apt-get install alien

You might also need to install java JRE 1.5 (or 1.6 ?) as the tools need it.

Create directories for the certificates

mkdir grid/etc/grid-security
mkdir grid/etc/grid-security/certificates
mkdir grid/etc/grid-security/vomsdir

FIXME : We'll need a cron job to keep these up to date. There seems to need to create a script to do this: grid/glite/libexec/ Cron command:

1 6 * * * /app/grid/glite/libexec/ >> /var/log/fetch-crl-cron.log 2>&1

This probably uses grid/external/usr/sbin/fetch-crl

Create a directory for the configuration scripts:

mkdir grid/config

We need to make the following files:

  • groups.conf
  • users.conf
  • site-info.def

The files groups.conf and users.conf can be empty. The file “site-info.def” is the important configuration file that we need to get right.

First generate a site-info.def. You do this by taking one of the examples and editing it to tailor it to your site. Important parameters are:

# Site-wide settings
SITE_LOC="Groningen, The Netherlands"
SITE_LAT=53.23821 # -90 to 90 degrees
SITE_LONG=6.53481 # -180 to 180 degrees

Next we need to do something along these lines using YAIM ../glite/yaim/bin/yaim -c -s site-info.def -n UI_TAR After a lot of fiddling with the site-info.def this works, even though it gives some errors. One of the things you need to change is the glite/yaim/functions/utils/detect_platform because using uname -i is not POSIX compliant according to It works if you use uname -m instead.

uname -m

Also you need to edit glite/yaim/functions/config_ui_tar change the following line:

yaimgridpath_append LD_LIBRARY_PATH ${GLITE_EXTERNAL_ROOT}/usr/lib

You need to add:

## added by Adriaan Renting
if [ "x${OS_ARCH}" = "x64BIT" ]; then
  if [ -d ${GLITE_EXTERNAL_ROOT}/usr/lib64 ]; then
      yaimgridpath_append LD_LIBRARY_PATH ${GLITE_EXTERNAL_ROOT}/usr/lib64

This generates the startup scrips. (see usage below)

I needed to also update OpenSSL, as the version that came with Ubuntu 8.04 was too old and gave unresolved symbols. I got the libraries from a rpm of OpenSSL 0.9.8e and put them in this directory:

> ls grid/downloads/lib64

I then updated the links made earlier to point to them.

ln -s grid/downloads/ grid/external/usr/lib64/
ln -s grid/downloads/lib64/ grid/external/usr/lib64/

I could probably just have copied the .so files to grid/external/usr/lib64 instead.

# gLite environment
source /${APS_LOCAL}/grid/external/etc/profile.d/grid-env.csh
source /${APS_LOCAL}/grid/globus/etc/globus-user-env.csh
voms-proxy-init -valid 24:00 -voms lofar:/lofar/ops
setenv LFC_HOST `lcg-infosites --vo lofar lfc`

On the LOFAR systems there is a script in /opt/scripts/doGrid that does exactly this.

After a while I encountered this error message from voms-proxy-init:

globus_gss_assist token :-1: read failure: Operation not permitted

It seems it's caused by your time/date being out of sync. Fixing NTP solved the problem at least.

  • Last modified: 2017-03-08 15:27
  • by