[Gdal-dev] compile issues...

Frank Warmerdam warmerdam at pobox.com
Fri Oct 31 12:51:30 EST 2003


Byron Amerson wrote:
> Hello I am a new user (not yet really...). I would like to build gdal on
> my mac running osx 10.3.  I will be using it in my build of grass5.
> 
> However I am having difficulty in the first phase of my build - the gdal
> compile is not seeing my postgresql scripts...??
> 
> see error message:
> 
> checking for PostgreSQL... no
> configure: error: --with-pg argument is a directory, but it should be the
> path to the pg_config script
> 
> yet my build of postgres works, and indeed pg_config is in the directory I
> specify (/usr/local/pgsql/bin).
> 
> any insight would be helpful.

Byron,

You need --with-pg=/usr/local/pgsql/bin/pg_config.  The path to the
script, including the name itself.

> also the --with-grass option is curious to me in that I specify the grass
> lib, yet grass is not installed yet as I want gdal installed for the grass
> build -  are there some circular dependancies here?

This is if you want to build libgrass into GDAL, so GDAL applications can
read grass datasets directly.  You should *not* do this if you want to
use the GDAL .so with GRASS, as it may screw up r.in.gdal to have libgrass,
and GRASS'es own libgis linked in at the same time.

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