[postgis-users] newbie install problem with GEOS

trobertson at gbif.org trobertson at gbif.org
Tue Apr 3 12:31:31 PDT 2007


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,
>
> I am newbie to POSTGIS and to my mac, and banging my head against the desk
> trying to get it to install.
>
> I have POSTGRES installed and working  I thought I had POSTGIS working
> only to find that when I try and do a CONTAINS() I get the "you need to
> build with GEOS" message...
>
> So, I try and follow the destructions, I downloaded PROJ4 and GEOS and in
> both do:
>
> su root
> ./configure
> make
> make install
>
> then copy the POSTGIS to the POSTGRES/contrib directory.
>
> I change the Makefil.contrib to have
>
> USE_GEOS=1
> GEOS_DIR=/usr/local
>
> USE_PROJ=1
> PROJ_DIR=/usr/local
>
> and when I run the ./configure in the
> /usr/local/src/postgres/postgresql-8.2.3/contrib/postgis-1.2.1 I get
>
> checking for geos-config... no
> checking for proj... no
>
> and the Makefile.config gets overridden to have 0's again where I set it
> to 1...
>
> Is GEOS installed?  How can I test?  Why is the config getting overriden?
>
> Please help - and be aware that I have very little clue as to what the C
> compiler setup is really doing so to be honest I need an idiots guide!
>
> Any help greatly appreciated at this point...
>
> Thanks
>
> Tim
>
> _______________________________________________
> 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