[postgis-users] problem enabling GEOS support on freebsd 4
strk at refractions.net
strk at refractions.net
Fri Oct 20 02:45:40 PDT 2006
On Tue, Oct 17, 2006 at 12:34:32PM -0700, theo burry wrote:
> Hi,
>
> I am working with postgis on freebsd 4, postgres 7.4.
>
> I'd like to be able to use some of the functions that require GEOS. I installed postgis-1.1.3 from the freebsd ports using pkg_add. For certain functions I get the error
>
> ERROR: boundary:: operation not implemented - compile PostGIS with JTS or GEOS support
>
> When I try to build postgis-1.1.5 from source, I get the following error:
>
> gcc -DUSE_VERSION=74 -DPOSTGIS_LIB_VERSION='"1.1.5"' -DPOSTGIS_VERSION='"1.1 USE_GEOS=1 USE_PROJ=1 USE_STATS=1"' -DPOSTGIS_SCRIPTS_VERSION='"1.1.5"' -DPOSTGIS_BUILD_DATE='"2006-10-17 19:18:24"' -I/usr/local/include -DUSE_PROJ -I/usr/local/include/postgresql/server -DAUTOCACHE_BBOX=1 -DUSE_STATS -Wall -g -O2 -fPIC -fexceptions -DUSE_GEOS -I/usr/local/include -c -o lwgeom_gist.o lwgeom_gist.c
> lwgeom_gist.c:552: macro `gistentryinit' used with too many (8) args
mmm... this is weird, are you sure the PGSQL whose headers are
installed under /usr/local/include/postgresql/server come from version 7.4.x ?
> Can anyone clarify the best way for me to get postgis installed with the GEOS support needed for the geo functions? Do I in fact need to build from source, or can I enable this after adding the freebsd package?
It's a compile-time choice, so need sources and GEOS installed.
If not autodetected you can use --with-geos=/path/to/geos-config
--strk;
More information about the postgis-users
mailing list