[postgis-users] More on: Cannot compile postgis on Fedora Core 4

Frank Koormann frank.koormann at intevation.de
Tue Aug 16 00:02:46 PDT 2005


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

-- 
Frank Koormann                             <frank.koormann at intevation.de>
 Professional Service around Free Software       (http://intevation.net/)
 FreeGIS Project                                 (http://freegis.org/)



More information about the postgis-users mailing list