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

Thom DeCarlo t.r.decarlo at larc.nasa.gov
Mon Dec 12 15:41:50 EST 2005


> -----Original Message-----
> From: fwarmerdam at gmail.com [mailto:fwarmerdam at gmail.com] On Behalf Of
> Frank Warmerdam
> Sent: Monday, December 12, 2005 1:53 PM
> To: Thom DeCarlo
> Cc: gdal-dev at lists.maptools.org
> Subject: Re: [Gdal-dev] Problem with gdal+postgresql on RHEL3
> 
> 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.
> 

Hmmm... that's odd. The LIBS variable included the substring
 "-lpq -L/usr/local/pgsql/lib -lpq". (For some reason, "-lpq" was included
twice.) I removed the one before the "-L" and it seems to be recompiling
properly.

I'm still trying to figure out rpm's. (complete Linux newbie here) The only
postgresql rpms that I've found (/var/spool/repackage/rh-postgresql-*)
respond with "not installed" to the "rpm -e" command.

Thanks for the off-topic help. I really appreciate it.

Thom


> 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