[postgis-users] compiling agains GEOS-3.1.1

Mark Cave-Ayland mark.cave-ayland at siriusit.co.uk
Fri Sep 11 08:18:41 PDT 2009


InterRob wrote:

> Dear list,
> 
> I succesfully "./configure && make && make install"-ed GEOS 3.1.1; 
> freshly downloaded from their site.
> 
> When configuring the postgis package I run into the following:
> 
> -------------cut----------------
> [...]
> checking for pg_config... /usr/bin/pg_config
> checking libpq-fe.h usability... yes
> checking libpq-fe.h presence... yes
> checking for libpq-fe.h... yes
> checking for PQserverVersion in -lpq... yes
> checking for geos-config... /usr/local/bin/geos-config
> checking geos_c.h usability... yes
> checking geos_c.h presence... yes
> checking for geos_c.h... yes
> *checking for initGEOS in -lgeos_c... no
> configure: error: could not find libgeos_c - you may need to specify the 
> directory of a geos-config file using --with-geosconfig*
> -------------cut----------------
> 
> geos-config is indeed found in /usr/local/bin/; when executing 
> "./geos-config --libs" I get the following:
> -L/usr/local/lib -lgeos
> 
> This seems to make sense since: the following files are available in 
> this directory (/usr/local/lib):
> libgeos-3.1.1.so <http://libgeos-3.1.1.so>  libgeos.a  libgeos_c.a  
> libgeos_c.la <http://libgeos_c.la>  libgeos_c.so  libgeos_c.so.1  
> libgeos_c.so.1.6.0  libgeos.la <http://libgeos.la>  libgeos.so  
> python2.5  site_ruby
> 
> I'm running on Ubuntu 8.04.1 (Hardy Heron)
> 
> All help is very much appreciated!

Hi Rob,

It looks as if the GEOS link flags are not being passed through to 
autoconf correctly. Can you send me the generated config.log file 
off-list, and also let me know which version of autoconf you are using 
(autoconf -V)?


TIA,

Mark.

-- 
Mark Cave-Ayland - Senior Technical Architect
PostgreSQL - PostGIS
Sirius Corporation plc - control through freedom
http://www.siriusit.co.uk
t: +44 870 608 0063

Sirius Labs: http://www.siriusit.co.uk/labs



More information about the postgis-users mailing list