On Jul 20, 2010, at 2:11 PM, Javier de la Torre wrote: > I have tried downloading the same version of PostGIS code that I have > installed via Kyngchaos and use it to compile WKT raster. I had to copy > config.sub and config.guess because it was complaining and then I ran: > Odd. The included config.sub/guess work for me.
> ./configure --with-postgis-sources=/Users/jatorre/workspace/postgis-1.5.1/ > --with-pgconfig=/usr/local/pgsql/bin/pg_config > --with-gdal=/Library/Frameworks/GDAL.framework/unix/bin/gdal-config > --with-geos=/Library/Frameworks/GEOS.framework/unix/bin/geos-config > > But the error I get is: > > ld: symbol(s) not found for architecture i386 > collect2: ld returned 1 exit status > ld: warning: directory '/Users/Shared/unix/gettext-snow/lib' following -L not > found Looks like I forgot to clean part of the Postgres installation before packaging it up. That's a local library that I bundle in the Postgres distribution. Watch my site for an update... > If I try to compile postgis I get the same error. > > I took a look at how the sources from kyngchaos were created > (http://www.kyngchaos.com/macosx/build/postgis) but they are not up to date > with Snow Leopard. Yes, I've been lazy here ;) postgis: export MACOSX_DEPLOYMENT_TARGET=10.6 export CFLAGS="-Os -arch i386 -arch x86_64" export PG_CPPFLAGS="-arch i386 -arch x86_64" export SHLIB_LINK="-arch i386 -arch x86_64" export LDFLAGS="-arch i386 -arch x86_64" ./configure --with-pgconfig=/usr/local/pgsql/bin/pg_config \ --with-geosconfig=/Library/Frameworks/GEOS.framework/Programs/geos-config \ --with-projdir=/Library/Frameworks/PROJ.framework/unix wktraster: export MACOSX_DEPLOYMENT_TARGET=10.6 export CFLAGS="-Os -arch i386 -arch x86_64" export PG_CPPFLAGS="-arch i386 -arch x86_64" export SHLIB_LINK="-arch i386 -arch x86_64" export LDFLAGS="-arch i386 -arch x86_64" ./configure --with-pgconfig=/usr/local/pgsql/bin/pg_config \ --with-gdal=/Library/Frameworks/GDAL.framework/Programs/gdal-config \ --with-geos=/Library/Frameworks/GEOS.framework/Programs/geos-config \ --with-postgis-sources=/Users/jatorre/workspace/postgis-1.5.1 ... hmm, it seems there is some interest in WKTraster on OS X... maybe it's time for a new package... ----- William Kyngesburye <kyngchaos*at*kyngchaos*dot*com> http://www.kyngchaos.com/ The equator is so long, it could encircle the earth completely once. _______________________________________________ postgis-users mailing list postgis-users@postgis.refractions.net http://postgis.refractions.net/mailman/listinfo/postgis-users