[GRASSLIST:678] Re: configure with postgres on OS X

Glynn Clements glynn.clements at virgin.net
Wed Jul 9 23:11:41 EDT 2003


David Orme wrote:

> The postgres library is: /usr/local/psql/lib/pqsql.a

In which case, the correct switch would be:

	--with-postgres-libs=/usr/local/psql/lib

> The config.log shows a problem with compiling a test file with gcc
> 
> > configure:8974: checking for location of PostgreSQL library
> > configure:9003: checking for PQsetdbLogin in -lpq
> > configure:9020: gcc -o conftest -g -O2    -L/usr/local/lib  conftest.c 
> > -lpq   1>&5

The last line above is the linking command; the line(s) immediately
after this (i.e. the error messages) are the ones which are relevant.

However, in this case, the error is likely to be that it simply
couldn't find libpq because it wasn't looking in /usr/local/psql/lib.

-- 
Glynn Clements <glynn.clements at virgin.net>




More information about the grass-user mailing list