[postgis-users] newbie install problem with GEOS

Tim Robertson trobertson at gbif.org
Wed Apr 4 01:42:09 PDT 2007


Ok... it was all my stupid misunderstanding of linux enviroments - Now I
have it built with a whole new versioning incompatibility error when I try
and run sql with "contains()" - marvelous.  Is there a WIKI somewhere that
says what versions of what work with what?  I went for the latest stable
releases of everything...

Cheers

Tim





-----Original Message-----
From: postgis-users-bounces at postgis.refractions.net
[mailto:postgis-users-bounces at postgis.refractions.net] On Behalf Of
trobertson at gbif.org
Sent: Wednesday, April 04, 2007 9:19 AM
To: PostGIS Users Discussion
Subject: Re: [postgis-users] newbie install problem with GEOS

Thanks Mark

I did what you say, removed and reextracted the postgis tar into my
postgres/contrib and ran the configure - getting the same results.

 - checking for geos-config... no
 - checking for proj... no

I copy my terminal session after the extraction - would you please cast an
eye over it and see if I am doing something stupid?

Many thanks



Last login: Wed Apr  4 09:11:33 on ttyp1
Welcome to Darwin!
abc:~ tim$ bash
abc:~ tim$ su root
Password:
abc:/Users/tim root# cp -R /Users/tim/Desktop/postgis-1.2.1
/usr/local/src/postgres/postgresql-8.2.3/contrib/
abc:/Users/tim root#
abc:/Users/tim root# cd /usr/local/src/postgres/postgresql-8.2.3/contrib/
abc:/usr/local/src/postgres/postgresql-8.2.3/contrib root# cd postgis-1.2.1/
abc:/usr/local/src/postgres/postgresql-8.2.3/contrib/postgis-1.2.1 root#
abc:/usr/local/src/postgres/postgresql-8.2.3/contrib/postgis-1.2.1 root#
./configure --with-geos=/usr/local/bin/geos-config --with-proj=/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
checking for proj... no
checking for flex... /usr/bin/flex
checking for dllwrap... no
checking for dlltool... no
checking for bison... bison -y
checking for perl... /usr/bin/perl
checking for xsltproc... /usr/bin/xsltproc
checking for pdfxmltex... no
checking for db2pdf... no
checking for jw... no
checking which template to use... darwin
configure: creating ./config.status
config.status: creating Makefile.config
config.status: WARNING:  Makefile.config.in seems to ignore the
--datarootdir setting
config.status: creating config.h

 SUMMARY
 -------------------------------------------------------

 HOST_OS: darwin8.8.1

   PGSQL: /usr/local/pgsql/bin/pg_config
    GEOS: /usr/local/bin/geos-config (with C-API)
          (ldflags: -L/usr/local/lib)
    PROJ: prefix=/usr/local libdir=/usr/local/lib
   ICONV: 1 -liconv

 PORTNAME: darwin
   PREFIX: /usr/local/pgsql
  EPREFIX: ${prefix}
      DOC: /usr/local/pgsql/doc/contrib
     DATA: ${datarootdir}
      MAN: ${datarootdir}/man
      BIN: /usr/local/pgsql/bin
      EXT: /usr/local/pgsql/lib (\$$libdir)
 -------------------------------------------------------

abc:/usr/local/src/postgres/postgresql-8.2.3/contrib/postgis-1.2.1 root#









> 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.
>
>
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
>
>

_______________________________________________
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