[postgis-users] More on: Cannot compile postgis on Fedora Core 4
Steven Bowden
steveb at bundaberg.qld.gov.au
Tue Aug 16 15:34:02 PDT 2005
I find the easiest way to install postgis with postgresql rpms is as follows.
install postgres via the rpm's.
install the postgresql src rpm
change to /usr/src/redhat/SPECS directory to where the postgresql.spec file is
locates and execute the following command
rpmbuild -bc postgresql.spec
That is the same as doing the ./configure and make and will generate all of
the files that are needed for a postgis install.
After that process is finished copy the postgis source to the
/usr/src/redhat/BUILD/postgresql-<version>/contrib directory and install as
per the postgis instructions.
This procedure has worked for me from RH9 through to Centos 4
Hope it helps
Steve
On Tuesday 16 August 2005 5:02, Frank Koormann wrote:
> Marco, all,
>
> * M. Fioretti <mfioretti at mclink.it> [050815 22:17]:
> > On Mon, Aug 15, 2005 13:33:11 PM -0600, Ethan Alpert
> >
> > (ealpert at digitalglobe.com) wrote:
> > > You need to compile postgresql from source to build the postgis
> > > extensions because postgis uses files in the source tree.
> >
> > after reading again Ethan's suggestion, I understood (I hope) what he
> > meant. So I:
>
> [...]
>
> > * still no success, this is what I get:
> >
> > make -C lwgeom
> > make[1]: Entering directory
> > `/usr/lib/pgsql/pgxs/src/contrib/postgis-1.0.3/lwgeom'
> > ../Makefile.config:98:
> > /usr/lib/pgsql/pgxs/src/contrib/postgis-1.0.3/../../src/Makefile.
> > global: No such file or directory
> > Makefile:113: /src/Makefile.shlib: No such file or directory
> > make[1]: *** No rule to make target `/src/Makefile.shlib'. Stop.
> > make[1]: Leaving directory
> > `/usr/lib/pgsql/pgxs/src/contrib/postgis-1.0.3/lwgeom'
> > make: *** [liblwgeom] Error 2
> >
> > After fixing the top directory to PGSQL_SRC ?= /usr/lib/pgsql/pgxs, I
> > am stuck to this:
> >
> > [root at polaris postgis-1.0.3]# make
> > make -C lwgeom
> > make[1]: Entering directory
> > `/usr/lib/pgsql/pgxs/src/contrib/postgis-1.0.3/lwgeom'
> > make[1]: *** No rule to make target
> > `/usr/lib/pgsql/pgxs/src/Makefile.global.in', needed by
> > `/usr/lib/pgsql/pgxs/src/Makefile.global'. Stop.
> > make[1]: Leaving directory
> > `/usr/lib/pgsql/pgxs/src/contrib/postgis-1.0.3/lwgeom'
> > make: *** [liblwgeom] Error 2
>
> you need something inbetween: Downloading the sources (or a SRPM) you
> really have the plain sources of postgresql. Building PostgreSQL consists
> of three steps:
> - ./configure
> - make (the actual build)
> - make install
>
> During the configure-step some files PostGIS relies on are created.
> Especially the makefiles. So if your system fulfills all (source)package
> requirements for PostgreSQl it should be sufficient to configure it, then
> build and install PostGIS as usual.
>
> HTH,
>
> Frank
More information about the postgis-users
mailing list