[GRASSLIST:2136] Fwd: 5.7 and postgres on Mac OSX
David Orme
d.orme at imperial.ac.uk
Tue Jan 6 05:54:43 EST 2004
Hi all,
I'd noticed the missing -L/usr/local/pgsql/lib but didn't know how to
deal with it. I've tried both the makefile edits that Glynn suggested
and either solves the problem for creating libgrass_vect.dylib. The
same problem then happens for libgrass_sites.dylib. The sites Makefile
contains:
EXTRA_LIBS=$(GISLIB) $(DBMILIB) $(VECTLIB)
If I add $(PQLIBPATH) $(PQLIB) then that creates but then
libgrass_interpfl.dylib fails...
My pgsql libraries are in /usr/local/pgsql/lib, which seems to be the
default for PostgreSQL - do I need to chase through the makefiles or am
I missing something simpler - I've tried linking libpq2.2.so into
/usr/local/lib and that doesn't help.
Any suggestions?
Thanks,
David
On Monday, January 5, 2004, at 10:41 pm, Glynn Clements wrote:
>
> David Orme wrote:
>
>> I'm trying again to build grass 5.7 (from 2004_01_03 snapshots) on mac
>> 10.2.8: make bails out when trying to create libgrass_vect.dylib
>> because it can't locate -lpq. I've got the postgres libs and includes
>> in my configure arguments and I can't work out where I'm going wrong.
>> I've put the steps below - can anyone suggest what's going on?
>
> The build system is ignoring your --with-postgres-libs= setting in
> this instance (no -L/usr/local/pgsql/lib switch).
>
> I'm not particularly familiar with the 5.7 build system, but
> lib/vector/Vlib/Makefile should probably have:
>
> EXTRA_LIBDIRS = $(PQLIBPATH)
>
> Either that, or EXTRA_LIBS should have:
>
> EXTRA_LIBS = ... $(PQLIBPATH) $(PQLIB)
>
> rather than just $(PQLIB).
>
> --
> Glynn Clements <glynn.clements at virgin.net>
>
More information about the grass-user
mailing list