[postgis-users] Re: PostGIS setup - Ubuntu Breezy + PostgreSQL-8.1

strk at refractions.net strk at refractions.net
Thu Apr 27 08:52:25 PDT 2006


On Thu, Apr 27, 2006 at 08:42:08AM -0700, Randy Burkhardt wrote:
> randy at kubuntu:~/postgresql-8.1.3/contrib/postgis-1.1.2$ sudo make
> Password:
> make -C lwgeom
> make[1]: Entering directory
> `/home/randy/postgresql-8.1.3/contrib/postgis-1.1.2/lwgeom'
> sh ../geos_version.sh /usr > postgis_geos_version.h
> gcc -DUSE_VERSION=81 -DPOSTGIS_LIB_VERSION='"1.1.2"'
> -DPOSTGIS_VERSION='"1.1 USE_GEOS=1 USE_PROJ=1 USE_STATS=1"'
> -DPOSTGIS_SCRIPTS_VERSION='"1.1.2"' -DPOSTGIS_BUILD_DATE='"2006-04-27
> 15:37:08"' -I/usr/include -DUSE_PROJ 
> -I/usr/include/postgresql/8.1/server -DAUTOCACHE_BBOX=1  -DUSE_STATS
> -Wall -g -O2 -fPIC -fexceptions -DUSE_GEOS    -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

This is your problem, postgres.h can't be found in
/usr/include/postgresql/8.1/server
Can you find it somewhere else ?
What does 'pg_config --includedir-server' returns ?

--strk;



More information about the postgis-users mailing list