[postgis-users] PostGIS 2.0 make problems on Mac Lion
Stefan Schwarzer
stefan.schwarzer at unep.org
Tue Jun 12 05:14:15 PDT 2012
Hi there,
I upgraded my machine from Snow Leopard to Lion, and ran, as usual, into some Postgres update problems.
I used Kyngchaos libraries for all frameworks and Postgres. Now, I'd like to compile PostGIS, in order to get the postgis_restore.pl function.
I use:
export CPPFLAGS=-I/usr/local/pgsql-9.1/include/server
export LDFLAGS=-L/usr/local/pgsql-9.1/lib
export CPATH=/usr/local/pgsql-9.1/include/server/
export LIBRARY_PATH=/usr/local/pgsql-9.1/lib
and
./configure --with-pgconfig=/usr/local/pgsql-9.1/bin/pg_config --with-geosconfig=/Library/Frameworks/GEOS.framework/unix/bin/geos-config --with-projdir=/Library/Frameworks/PROJ.framework/unix --with-raster --with-topology --with-gdalconfig=/Library/Frameworks/GDAL.framework/Programs/gdal-config
but the making process starts with this:
---- Making all in liblwgeom
/bin/sh ../libtool --mode=compile gcc -g -O2 -fno-common -DPIC -Wall -Wmissing-prototypes -I/Library/Frameworks/GEOS.framework/Versions/3/unix/include -I/Library/Frameworks/PROJ.framework/unix/include -c -o stringbuffer.lo stringbuffer.c
libtool: compile: gcc -g -O2 -fno-common -DPIC -Wall -Wmissing-prototypes -I/Library/Frameworks/GEOS.framework/Versions/3/unix/include -I/Library/Frameworks/PROJ.framework/unix/include -c stringbuffer.c -fno-common -DPIC -o .libs/stringbuffer.o
and continues then with this:
---- Making all in postgis
In file included from /usr/local/pgsql-9.1/include/server/postgres.h:47,
from postgis_module.c:13:
/usr/local/pgsql-9.1/include/server/c.h:67:19: error: stdio.h: No such file or directory
/usr/local/pgsql-9.1/include/server/c.h:68:20: error: stdlib.h: No such file or directory
/usr/local/pgsql-9.1/include/server/c.h:69:20: error: string.h: No such file or directory
/usr/local/pgsql-9.1/include/server/c.h:73:21: error: strings.h: No such file or directory
/usr/local/pgsql-9.1/include/server/c.h:76:20: error: stdint.h: No such file or directory
/usr/local/pgsql-9.1/include/server/c.h:78:23: error: sys/types.h: No such file or directory
/usr/local/pgsql-9.1/include/server/c.h:80:19: error: errno.h: No such file or directory
/usr/local/pgsql-9.1/include/server/c.h:94:20: error: locale.h: No such file or directory
In file included from /usr/local/pgsql-9.1/include/server/c.h:99,
from /usr/local/pgsql-9.1/include/server/postgres.h:47,
from postgis_module.c:13:
/usr/local/pgsql-9.1/include/server/libintl.h:24:22: error: xlocale.h: No such file or directory
…
Any tip is very much appreciated, as I have no idea how to proceed.
Stefan
More information about the postgis-users
mailing list