[GRASSLIST:1512] Re: requesting help on compiling postgres interface

Eric G. Miller egm2 at jps.net
Sun Feb 25 00:30:13 EST 2001


On Sun, Feb 25, 2001 at 02:20:16PM +1000, David Hine wrote:
> 
> 
> Dear All
> 
> I am having trouble compiling the postgres interface. When I run gmake5
> from grass.postgres(following the instructions in INSTALL) I get the
> error messages below.
> 
> Any advice on how to fix this?
> thanks
> David Hine
> 
> /usr/local/grass-5.0b/src.garden/grass.postgresql/d.rast.pg
>   make -f OBJ.i586-linux-elf/make.rules
> 
> make[1]: Entering directory
> `/usr/local/grass-5.0b/src.garden/grass.postgresql/d.rast.pg'
> rm -f OBJ.i586-linux-elf/runInfxFile.o
> gcc -g -O2  -I/usr/local/pgsql/include -I/usr/lib/pgsql/include
> -I/usr/include/postgresql -I/usr/local/grass-5.0b/src/include  -c
> runInfxFile.c
> runInfxFile.c:6: libpq-fe.h: No such file or directory
> make[1]: *** [OBJ.i586-linux-elf/runInfxFile.o] Error 1
> make[1]: Leaving directory
> `/usr/local/grass-5.0b/src.garden/grass.postgresql/d.rast.pg'
> make: *** [all] Error 2
> 
> I have set these paths in /src/CMD/head/linux

Do you have the PostgreSQL libpq and its header files?  The build, so
far, is failing because the "libpq-fe.h" header file for the PostgreSQL
library is not found in any of the -I/* directories, the current
directory and probably a few others like /usr/include, etc...

If PostgreSQL is installed in someplace like /opt, use the ./configure
directives so the compiler can know where to look.

-- 
Eric G. Miller <egm2 at jps.net>




More information about the grass-user mailing list