[postgis-users] newbie install problem with GEOS

Mark Cave-Ayland mark.cave-ayland at ilande.co.uk
Tue Apr 3 15:26:02 PDT 2007


On Tue, 2007-04-03 at 21:31 +0200, trobertson at gbif.org wrote:
> Ah - I see if i change the makefile.config.in it doesn't get overriden but
> now I till don't get them in the ./configure and a make:
> 
> abc:/usr/local/src/postgres/postgresql-8.2.3/contrib/postgis-1.2.1 root#
> ./configure --with-geos=/usr/local
> checking for gcc... gcc
> checking for C compiler default output file name... a.out
> checking whether the C compiler works... yes
> checking whether we are cross compiling... no
> checking for suffix of executables...
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether gcc accepts -g... yes
> checking for gcc option to accept ISO C89... none needed
> checking for g++... g++
> checking whether we are using the GNU C++ compiler... yes
> checking whether g++ accepts -g... yes
> checking whether ln -s works... yes
> checking for iconv_open in -liconv... yes
> checking how to run the C preprocessor... gcc -E
> checking for grep that handles long lines and -e... /usr/bin/grep
> checking for egrep... /usr/bin/grep -E
> checking for ANSI C header files... yes
> checking for sys/types.h... yes
> checking for sys/stat.h... yes
> checking for stdlib.h... yes
> checking for string.h... yes
> checking for memory.h... yes
> checking for strings.h... yes
> checking for inttypes.h... yes
> checking for stdint.h... yes
> checking for unistd.h... yes
> checking iconv.h usability... yes
> checking iconv.h presence... yes
> checking for iconv.h... yes
> checking build system type... i686-apple-darwin8.8.1
> checking host system type... i686-apple-darwin8.8.1
> checking for pg_config... /usr/local/pgsql/bin/pg_config
> checking for geos-config... no
> configure: error: Invalid argument to --with-geos
> 
> 
> abc:/usr/local/src/postgres/postgresql-8.2.3/contrib/postgis-1.2.1 root# make
> make -C lwgeom
> gcc -DUSE_VERSION=82 -DPOSTGIS_LIB_VERSION='"1.2.1"'
> -DPOSTGIS_VERSION='"1.2 USE_GEOS=1 USE_PROJ=1 USE_STATS=1"'
> -DPOSTGIS_SCRIPTS_VERSION='"1.2.1"' -DPOSTGIS_BUILD_DATE='"2007-04-03
> 19:28:23"' -I/usr/local/include -DUSE_PROJ 
> -I/usr/local/pgsql/include/server -DAUTOCACHE_BBOX=1  -DUSE_STATS -Wall -g
> -O2 -fPIC -fexceptions -DUSE_GEOS -I/usr/local/include   -bundle 
> measures.o box2d.o ptarray.o lwgeom_api.o lwgeom.o lwpoint.o lwline.o
> lwpoly.o lwmpoint.o lwmline.o lwmpoly.o lwcollection.o   wktunparse.o
> lwgparse.o wktparse.tab.o lex.yy.o vsprintf.o liblwgeom.o lwgeom_pg.o
> lwgeom_debug.o lwgeom_spheroid.o lwgeom_ogc.o lwgeom_functions_analytic.o
> lwgeom_geos_c.o lwgeom_inout.o lwgeom_estimate.o lwgeom_functions_basic.o
> lwgeom_gist.o lwgeom_btree.o lwgeom_transform.o stringBuffer.o
> lwgeom_box.o lwgeom_box3d.o lwgeom_box2dfloat4.o lwgeom_chip.o
> lwgeom_svg.o lwgeom_gml.o lwgeom_kml.o lwgeom_triggers.o lwgeom_dump.o
> lwgeom_functions_lrs.o long_xact.o lwcurve.o lwcompound.o lwcurvepoly.o
> lwmcurve.o lwmsurface.o lwgeom_sqlmm.o  -no-cpp-precomp -flat_namespace
> -undefined suppress -multiply_defined suppress  -L/usr/local/lib -lgeos_c
> -L -lproj -o liblwgeom.1.2.so
> /usr/bin/ld: -L: directory name missing
> collect2: ld returned 1 exit status
> make[1]: *** [liblwgeom.1.2.so] Error 1
> make: *** [liblwgeom] Error 2
> abc:/usr/local/src/postgres/postgresql-8.2.3/contrib/postgis-1.2.1 root#
> 
> Thanks


Hi Tim,

The --with-geos argument to configure needs to point directly to the
geos-config file, while the --with-proj argument should point to the
directory under which PROJ was installed, e.g. in your case:

./configure --with-geos=/usr/local/bin/geos-config
--with-proj=/usr/local

You don't need alter any of the Makefile.config / Makefile.config.in
files; I would suggest re-extracting the tarball from afresh and then
re-running configure to ensure everything is as it should be.


Kind regards,

Mark.





More information about the postgis-users mailing list