[GRASS5] Problem compiling 5.1
Aleksey Naumov
naumov at acsu.buffalo.edu
Wed Mar 13 20:42:14 EST 2002
Hi,
I have a problem compiling grass5.1. As directed in INSTALL, I configure it
with grass5.0 head branch:
CFLAGS="-g -Wall" ./configure --with-grass50=/home/Geo/GRASS/grass
Then run 'make'. Here's the error:
make[3]: Entering directory `/home/Geo/GRASS/grass51/display/d.mon/cmd'
make[3]: *** No rule to make target `-lpq', needed by
`/home/Geo/GRASS/grass51/dist.i686-pc-linux-gnu/etc/bin/cmd/d.mon'. Stop.
make[3]: Leaving directory `/home/Geo/GRASS/grass51/display/d.mon/cmd'
make[2]: *** [subdirs] Error 1
make[2]: Leaving directory `/home/Geo/GRASS/grass51/display/d.mon'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/home/Geo/GRASS/grass51/display'
make: *** [default] Error 1
I guess '-lpq' must be the linking flag for Postgres library 'libpq', as
defined in Platform.make:
#PostgreSQL:
PQINCPATH = -I/usr/local/pgsql/include
PQLIBPATH = -L/usr/local/pgsql/lib
PQLIB = -lpq
but looking thru the Makefiles I don't see how 'd.mon' is dependent upon
'-lpq', where is this specified?
I must be missing something in the Makefile logic or layout.
Any ideas how to deal with this would be great.
Aleksey
More information about the grass-dev
mailing list