[postgis-users] strange compile problems
Dylan Beaudette
dylan.beaudette at gmail.com
Wed Sep 20 17:03:00 PDT 2006
This morning i installed postgresql-8.1.3 and postgis-1.1.3 built against geos
3.0.0 ... everything worked as expected. noticing that geos 3.0.0 broke some
other packages, i have since removes it, and installed geos 2.3 in its place.
re-compiling my stack of GIS software against geos 2.3 worked fine, except
postgis. i am not getting a strange error which appears to be associated with
a bad include DIR definition:
cd postgresql-8.1.3
./configure
make
sudo make install
cd contrib/postgis-1.1.3
./configure
make
[...]
make[1]: Entering directory
`/home/dylan/src/postgresql-8.1.3/contrib/postgis-1.1.3/lwgeom'
gcc -march=opteron -DUSE_VERSION=81 -DPOSTGIS_LIB_VERSION='"1.1.3"' -DPOSTGIS_VERSION='"1.1
USE_GEOS=1 USE_PROJ=1
USE_STATS=1"' -DPOSTGIS_SCRIPTS_VERSION='"1.1.3"' -DPOSTGIS_BUILD_DATE='"2006-09-20
23:31:02"' -I/usr/local/include -DUSE_PROJ -I/usr/include/postgresql/8.1/server -DAUTOCACHE_BBOX=1 -DUSE_STATS -Wall -g -O2 -fPIC -fexceptions -DUSE_GEOS -I/usr/local/include -c -o
liblwgeom.o liblwgeom.c
In file included from liblwgeom.c:26:
lwgeom_pg.h:4:22: error: postgres.h: No such file or directory
lwgeom_pg.h:5:29: error: utils/geo_decls.h: No such file or directory
lwgeom_pg.h:6:18: error: fmgr.h: No such file or directory
this did not happen this morning.
here is the output from ./configure:
SUMMARY
-------------------------------------------------------
HOST_OS: linux-gnu
PGSQL: /usr/bin/pg_config
GEOS: /usr/local/bin/geos-config (with C-API)
(ldflags: -L/usr/local/lib)
PROJ: prefix=/usr/local libdir=/usr/local/lib
ICONV: 1
PORTNAME: linux
PREFIX: /usr
EPREFIX: ${prefix}
DOC: /usr/share/doc/postgresql-doc-8.1/contrib
DATA: /usr/share/postgresql/8.1/contrib
MAN: /usr/share/postgresql/8.1/man
BIN: /usr/lib/postgresql/8.1/bin
EXT: /usr/lib/postgresql/8.1/lib (\$$libdir)
-------------------------------------------------------
anyone have an idea on what is going on ? i have never had this happen with an
install of postgis...
thanks in advance!
--
Dylan Beaudette
Soils and Biogeochemistry Graduate Group
University of California at Davis
530.754.7341
More information about the postgis-users
mailing list