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

Randy Burkhardt randy.burkhardt at gmail.com
Thu Apr 27 09:32:24 PDT 2006


strk,
pg_config --includedir-server  returns
/usr/include/postgrsql/8.1/server

however I find 'postgres.h' these 3 places

usr/local/pgsql/include/server/

usr/include/postgresql/

home/randy/postgresql-8.1.3/src/include/

Do I need to ./configure geos-2.2.1 with /usr/local/pgsql/include/server/
in some way?

maybe
#geos.2.2.1 ./configure --with-server=/usrlocal/pgsql/include/server/
how does that work?
Thank you





On 4/27/06, strk at refractions.net <strk at refractions.net> wrote:
>
> 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;
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20060427/5d8d0798/attachment.html>


More information about the postgis-users mailing list