This wiki is obsolete, see the NorduGrid web pages for up to date information.

Build LFC

From NorduGrid
Jump to navigationJump to search

Warn.png

NOTE: This page is out of date and is kept for purely historical reasons.
LFC packages are now available in standard repositories for Red Hat and Debian-like distributions

Building LFC

This guide as not as cut-and-paste ready as the others, so read more carefully here. Improvements will be added later.

Building CGSI_gSOAP

Assume $CGSI_GSOAP_LOCATION points to where we want the CGSI_gSOAP libraries to be placed.

LFC need CGSI_gSOAP so we will first have to make that one. Download the latest source rpm found in NorduGrid FTP Area and convert it to a tar-ball and unpack the tar-ball:

 wget ftp://ftp.nordugrid.org/software/CGSI_gSOAP/releases/latest/src/CGSI_gSOAP*.src.rpm
 alien --to-tgz CGSI_gSOAP-$VERSION.src.rpm
 tar -xvzf CGSI_gSOAP-$VERSION.tgz

The result is probably another tar-ball and possibly some patches. Untar the tar-ball and if needed apply the patches:

 tar -xvzf CGSI_gSOAP-$VERSION.tar.gz
 cd CGSI_gSOAP-$VERSION
 for i in ../CGSI_gSOAP*.patch; do patch -p1 < $i; done;

The build system is slightly awkward and non-standard:

Note: on 6.06 you must also specify --with-gsoap-location=$GSOAP_LOCATION

 mkdir build
 cd build
 ../configure --with-globus-prefix=$GLOBUS_LOCATION --with-voms-location=$VOMS_LOCATION
 cd src
 make
 make install PREFIX=$CGSI_GSOAP_LOCATION

Building LFC

Now we have the prerequisites finished for building LFC. Again we start with the same procedure as for CGSI_gSOAP. Download the latest source RPM from NorduGrid FTP Area and convert it to a tar-ball, unpack, untar and apply patches:

 wget ftp://ftp.nordugrid.org/software/LFC/releases/latest/src/LFC*.src.rpm
 alien --to-tgz LFC-VERSION...src.rpm
 tar -xvzf LFC-VERSION.tgz
 tar -xvzf LFC-VERSION.tar.gz
 cd LFC-VERSION
 for i in ../LFC-*.patch; do patch -p1 < $i ; done;

If you found the build system for CGSI strange, be prepared for something even stranger. LFC uses to by now obsolete imake system. Start by downloading this patch. The following assume we are still in the directory from the last sequence of commands

 export VOMSL=$VOMS_LOCATION
 export GLOBUSL=$GLOBUS_LOCATION
 export LD_LIBRARY_PATH=$GLOBUS_LOCATION/lib
 patch -p1 < LFC-ubuntu.patch
 cp Makefile.ini Makefile
 make
 make install