[postgis-devel] Compiling on Amazon Linux (RHEL Variant): "error: could not find GDAL"

Sandro Santilli strk at keybit.net
Thu Jun 19 22:46:42 PDT 2014


On Fri, Jun 20, 2014 at 12:41:41AM +0000, Aryeh Hillman wrote:
> Hi all,
> 
> I am trying to compile postgis-2.1.3 from source. I seem to be hitting this error:
> 
> 
> configure:20049: error: could not find GDAL

>From your paste:
warning: libpq.so.5, needed by /usr/local/lib/libgdal.so, not found (try using -rpath or -rpath-link

That's the reason for "could not find GDAL".

Try adding exporting LDFLAGS="-L /usr/pgsql-9.2/lib"

--strk;

> 
> 
> I do have GDAL installed at /usr/local/lib and I believe ldconfig is setup properly.
> 
> 
> Dump from ldconfig --verbose: https://gist.github.com/anonymous/65665a274cc7728c57ed
> 
> 
> Dump from failing section of configure.log: https://gist.github.com/anonymous/93c03c07e4e8b0030129
> 
> 
> Any ideas? Thanks so much in advance for the help. This is my first time installed postgis from source.
> 
> 
> aryeh
> 



More information about the postgis-devel mailing list