[Gdal-dev] Problem with gdal+postgresql on RHEL3

Frank Warmerdam warmerdam at pobox.com
Mon Dec 12 13:52:34 EST 2005


On 12/12/05, Thom DeCarlo <t.r.decarlo at larc.nasa.gov> wrote:
> I've got a Red Hat Enterprise Linux v3 box that I inherited and I want to
> set up as a geospatial data server and GIS workstation. I've successfully
> compiled and installed PostgreSQL v8.1.0 and PostGIS v1.0.6 into the
> /usr/local directory. I've run the gdal configure using "./configure
> --with-grass=/usr/local/grass-6.0.1
> --with-pg=/usr/local/pgsql/bin/pg_config".
>
> However, when I try to compile gdal the linker picks up the wrong version of
> PostgreSQL. (The computer came with an older version of PostgreSQL installed
> and I'm not sure what will break if I just delete it.) The linker warnings
> look like this:

Thom,

If you look in GDALmake.opt after configuring you should
have -lpq appearing in your LIBS variable.  Change the
part that says "-lpq" to "-L/usr/local/pgsql/lib -lpq" to force
it to link against a particular library.

When configure fails you, don't hesitate to doctor up
the GDALmake.opt.

Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent




More information about the Gdal-dev mailing list