[Pgcluster-general] RPMs
Sipos Ferenc
sipos.ferenc at telefor.hu
Tue Feb 27 11:23:28 UTC 2007
Hi,
You can make your own postgresql-pgcluster RPMs very-very simply.
Download postgresql source rpm into /usr/src/redhat/SRPMS directory and
install it (rpm -i postgresql.XXX.src.rpm). It touch the
postgresql-X.Y.Z.tar.bz2 into SOURCES directory and postgresql.spec file
into SPECS directory. Download pgcluster patch to and put it into the
SOURCES directory. Add the following lines into postgres.spec file
Add the "Patch7 ..." line here:
[...]
Patch6: postgresql-perl-rpath.patch
Patch7: pgcluster-1.7.0rc3-patch
(replace the pgcluster-1.7.0rc3-patch with the current patch file name.)
And here the %patch7...:
[..]
%patch6 -p1
%patch7 -p1
And here these three lines:
[...]
%{_bindir}/reindexdb
%{_bindir}/vacuumdb
%{_bindir}/pgcbench
%{_bindir}/pglb
%{_bindir}/pgreplicate
I marked with red color the new lines you should insert.
After that you only have to run rpmbuild -bb xxxx.spec
And after that you have your own postgresql RPMs with pgcluster in it.
I you got an erro regards libpq.so while you run rpmbuild, you have to
modify the .spec file:
from:
%package libs
Summary: The shared libraries required for any PostgreSQL clients
Group: Applications/Databases
Provides: libpq.so
to:
%package libs
Summary: The shared libraries required for any PostgreSQL clients
Group: Applications/Databases
Provides: libpq.so.4
Best Regards,
Ferenc Sipos
-----Original Message-----
From: pgcluster-general-bounces at pgfoundry.org
[mailto:pgcluster-general-bounces at pgfoundry.org
<mailto:pgcluster-general-bounces at pgfoundry.org> ] On Behalf Of John
Gardner
Sent: Tuesday, February 27, 2007 10:59 AM
To: pgcluster-general at pgfoundry.org
Subject: Re: [Pgcluster-general] RPMs
Tarhon-Onu Victor wrote:
> On Mon, 26 Feb 2007, John Gardner wrote:
>
>> We're about to put together a relatively simple 2 node PostgreSQL
>> cluster using pgCluster. Now, I've installed Postgres using the
>> latest
>> 8.2.3 RPM package, and I am looking for an RPM package of pgCluster
>> but there doesn't seem to be any around, (there was some discussion
>> on the list back in March 2006 but no resolution) so my question is
three-fold...
>
> Hi guys,
>
> As I promised a few days ago I've put together some PostgreSQL
RPMs
> with the pgcluster patch added.
>
Thanks Victor
Unfortunately, we've installed pgCluster from source on our development
boxes, but I will try and install the rpms on another box later this
week/early next.
John
--
John Gardner - Tagish Ltd.
Infrastructure Manager
T: 01665 833 322
F: 01665 830 695
D: 01665 833 310
_______________________________________________
Pgcluster-general mailing list
Pgcluster-general at pgfoundry.org
http://pgfoundry.org/mailman/listinfo/pgcluster-general
<http://pgfoundry.org/mailman/listinfo/pgcluster-general>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://pgfoundry.org/pipermail/pgcluster-general/attachments/20070227/dde72a08/attachment.html
More information about the Pgcluster-general
mailing list