./configure --with-pgconfig=/usr/local/pgsql/bin/pg_config --with-geosconfig=/usr/local/bin/geos-config
Yet I keep getting this error message:
configure: error: could not find libgeos_c - you may need to specify the directory of a geos-config file using --with-geosconfig
The problem is: libgeos_c.so does indeed exist in the /usr/local/lib/. Also, geos-config points to the right direction. Here is the first four lines of geos-config:
Furthermore, I have checked /etc/ld.so.conf, and /usr/local/lib exists in the file:
I also have run ldconfig ad nauseam.
By the way, I'm using PostGIS 1.4.0 and Geos 3.1.1. My linux version is CentOS release 4.2 (Final). What happens?