[postgis-users] PostGIS 2.0 make problems on Mac Lion

William Kyngesburye woklist at kyngchaos.com
Tue Jun 12 06:39:58 PDT 2012


There is no need to compile - postgis_restore.pl IS in my PostGIS package.  It's in pgsql/share/contrib/postgis-2.0.


On Jun 12, 2012, at 7:14 AM, Stefan Schwarzer wrote:

> 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
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

"Mon Dieu! but they are all alike.  Cheating, murdering, lying, fighting, and all for things that the beasts of the jungle would not deign to possess - money to purchase the effeminate pleasures of weaklings.  And yet withal bound down by silly customs that make them slaves to their unhappy lot while firm in the belief that they be the lords of creation enjoying the only real pleasures of existence....

- the wisdom of Tarzan





More information about the postgis-users mailing list