Building Slony

From GridPP Wiki
Revision as of 12:31, 28 February 2007 by Andrew elwell (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Slony needs to be built against the version of postgresql that is in use, therefore there may not be rpms available.

To build slony on SL3

Download the slony tarball from the Slony website

Install the following rpms if not already installed:

 rpm-build
 postgresql-devel
 flex
 bison
 openssl-devel
 autoconf
 gcc
 perl-DBI

(Unfortunately the version of autoconf supplied with SL3 seems to be too old to build slony successfully, however autoconf 2.59 works.)


As the postgres user:

 Expand the tarball
 Change into the newly created directory
 Run ./configure
 Edit the Makefile.global and change the line :
   override CPPFLAGS := -I${pgincludedir} -I${pgincludeserverdir} $(CPPFLAGS)
 to
   override CPPFLAGS := -I${pgincludedir} -I${pgincludeserverdir} -I/usr/kerberos/include $(CPPFLAGS)
 Run make


As root:

 Change into the directory
 Run make rpm

If all has completed successfully then an rpm will exist under /usr/src/redhat/RPMS/i386 with a name like : postgresql-slony1-engine-1.1.5_RC3-1_PG8.1.0.i386.rpm

To build slony on SL4:

This is identical to above except that it is not necessary to edit Makefile.global