Hi guys, I've installed and configured Pg-Cluster using configure-> make-> make install. It works fine
I want to create a RPM Pg-Cluster file on Fedora Core 9 (2.6.25-14.fc9.i686). After a while searching the internet for solutions to each problem I decided to write here. So here are my steps. I've tried two ways, none worked. I am kind of new to Linux so please be kind to me : ) The commands are ran with a different user, not root! (I) 1) yumdownloader -source postgresql a. postgresql-8.3.1-1.fc9.src.rpm | 20 MB 00:13 2) rpm -i postgresql-8.3.1-1.fc9.src.rpm 3) download the patch for Pg-Cluster a. wget http://pgfoundry.org/frs/download.php/1706/pgcluster-1.9.0rc5-patch.tar.gz 4) tar file and copy to /usr/src/redhat/SOURCES 5) vim postgresql.spec from the SPEC folder a. add Patch7: pgcluster-1.9.0rc5-patch b. add %patch7 -p1 c. add %{_bindir}/pglb and %{_bindir}/pgreplicate 6) rpmbuild -bb postgresql.spec 7) ERROR after 10 seconds a. Patch #7 (pgcluster-1.9.0rc5-patch): b. + patch -p1 -s c. 1 out of 3 hunks FAILED -- saving rejects to file src/backend/catalog/catalog.c.rej d. error: Bad exit status from /var/tmp/rpm-tmp.36154 (%prep) e. RPM build errors: f. Bad exit status from /var/tmp/rpm-tmp.36154 (%prep) (II) 1) yumdownloader -source postgresql a. postgresql-8.3.1-1.fc9.src.rpm | 20 MB 00:13 2) rpm -i postgresql-8.3.1-1.fc9.src.rpm 3) download the patch for Pg-Cluster a. wget http://pgfoundry.org/frs/download.php/1706/pgcluster-1.9.0rc5-patch.tar.gz 4) tar patch file and copy to main folder of tar-ed Postgresql 5) patch -p1 < pgcluster-1.9.0rc5-patch 6) tar back the postgresql bz2 file : tar -jcvf postgresql-8.3.1.tar.bz2 postgresql-8.3.1/ 7) vim postgresql.spec from the SPEC folder a. add %{_bindir}/pglb and %{_bindir}/pgreplicate without any automatic patch 8) rpmbuild -bb postgresql.spec 9) ERROR after 3 minutes a. ============== creating temporary installation ============== b. ============== initializing database system ============== c. ============== starting postmaster ============== d. running on port 55432 with pid 23346 e. ============== creating database "regression" ============== f. ERROR: PGRreplication failed. g. command failed: "/usr/src/redhat/BUILD/postgresql-8.3.1/src/test/regress/./tmp_check/install //usr/bin/psql" -X -c "CREATE DATABASE \"regression\" TEMPLATE=template0 ENCODING='SQL_ASCII'" "postgres" h. server stopped i. make: *** [check] Error 2 j. error: Bad exit status from /var/tmp/rpm-tmp.87659 (%build) k. RPM build errors: l. Bad exit status from /var/tmp/rpm-tmp.87659 (%build) Is there another way (III) or I am doing something wrong? Thank you Ovidiu
_______________________________________________ Pgcluster-general mailing list [email protected] http://pgfoundry.org/mailman/listinfo/pgcluster-general
