[postgis-users] compiling PostGIS 2.0 SVN on OS X Lion
Mr. Puneet Kishor
punk.kish at gmail.com
Sun Oct 16 15:32:12 PDT 2011
Thanks Nicolas. Unfortunately, I am not using the kyngchaos packages. Instead, I am installing everything from MacPorts. I have gdal with Python bindings installed (at least, I think so), yet, I get
RASTER: Raster support requested
checking for GDAL >= 1.6.0... found
checking for GDALFPolygonize in -lgdal... no
checking for GDAL Python bindings... not found
configure: error: GDAL Python bindings required by raster2pgsql.py loader
I am not quite sure how to convince the .configure script that I do have gdal w/Python, OR, determine that I really don't have it.
On Oct 16, 2011, at 5:15 AM, Nicolas Ribot wrote:
>> punkish at Lucknow ~/Projects/postgis-svn$autoconf
>> configure.ac:20: error: possibly undefined macro: AC_PROG_LIBTOOL
>> If this token and others are legitimate, please use m4_pattern_allow.
>> See the Autoconf documentation.
>> configure.ac:39: error: possibly undefined macro: AC_LIBTOOL_COMPILER_OPTION
>> configure.ac:555: error: possibly undefined macro: AM_GNU_GETTEXT
>> configure.ac:599: error: possibly undefined macro: AC_PROJ_VERSION
>> configure.ac:632: error: possibly undefined macro: AM_PATH_GTK_2_0
>>
>>
>>
>> suggestions?
>>
>
> Hi Puneet,
>
> I used these commands with the latest Kyngchaos packages and was able
> to build Postgis 2.0:
>
> 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
>
> ./configure \
> --prefix=$HOME/bin/postgis-2.0 \
> --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
>
> make clean && make
>
> sudo make install
>
> After that, I modified the path to avoid calling the default
> /usr/bin/psql Mac version.
>
> Nicolas
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
More information about the postgis-users
mailing list