[GRASS5] Grass6 installation problem

BETTON Nicolas nico_bet at yahoo.fr
Thu Mar 17 05:17:57 EST 2005


Hello,
I'm trying to install Grass6 with postgresql support
on linux fedora core 1.

Postgresql ( is well-installed
PostGis 0.9.1
Proj4.. and several libraries required...

when configuring Grass6 I've got this error message :

checking whether to use PostgreSQL... yes
checking for location of PostgreSQL includes...
/usr/local/pgsql/include/
checking for libpq-fe.h... yes
checking for location of PostgreSQL library...
checking for PQsetdbLogin in -lpq... no
checking for PQsetdbLogin in -lpq... no
checking for PQsetdbLogin in -lpq... no
checking for PQsetdbLogin in -lpq... no
configure: error: *** Unable to locate PostgreSQL
library.

My path seems to be correct...

Here is the end of the config.log :
configure:8803: checking whether to use PostgreSQL
configure:8830: checking for location of PostgreSQL
includes
configure:8856: checking for libpq-fe.h
configure:8864: gcc -E  -I/usr/local/pgsql/include/ 
conftest.c >/dev/null 2>conftest.out
configure:8902: checking for location of PostgreSQL
library
configure:8931: checking for PQsetdbLogin in -lpq
configure:8948: gcc -o conftest -O3    -s
-Wl,--export-dynamic conftest.c -lpq   1>&5
/usr/bin/ld: cannot find -lpq
collect2: ld returned 1 exit status
configure: failed program was:
#line 8937 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an
error.  */
/* We use char because int might match the return type
of a gcc2
    builtin and then its argument prototype would
still apply.  */
char PQsetdbLogin();

int main() {
PQsetdbLogin()
; return 0; }
configure:8967: checking for PQsetdbLogin in -lpq
configure:8984: gcc -o conftest -O3    -s
-Wl,--export-dynamic conftest.c -lpq -lssl -lcrypto 
1>&5
/usr/bin/ld: cannot find -lpq
collect2: ld returned 1 exit status
configure: failed program was:
#line 8973 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an
error.  */
/* We use char because int might match the return type
of a gcc2
    builtin and then its argument prototype would
still apply.  */
char PQsetdbLogin();

int main() {
PQsetdbLogin()
; return 0; }
configure:9003: checking for PQsetdbLogin in -lpq
configure:9020: gcc -o conftest -O3    -s
-Wl,--export-dynamic conftest.c -lpq -lcrypt  1>&5
/usr/bin/ld: cannot find -lpq
collect2: ld returned 1 exit status
configure: failed program was:
#line 9009 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an
error.  */
/* We use char because int might match the return type
of a gcc2
    builtin and then its argument prototype would
still apply.  */
char PQsetdbLogin();

int main() {
PQsetdbLogin()
; return 0; }
configure:9039: checking for PQsetdbLogin in -lpq
configure:9056: gcc -o conftest -O3    -s
-Wl,--export-dynamic conftest.c -lpq -lcrypt -lssl
-lcrypto  1>&5
/usr/bin/ld: cannot find -lpq
collect2: ld returned 1 exit status
configure: failed program was:
#line 9045 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an
error.  */
/* We use char because int might match the return type
of a gcc2
    builtin and then its argument prototype would
still apply.  */
char PQsetdbLogin();

int main() {
PQsetdbLogin()
; return 0; }


I don't know what to do ... it's about 2 hours of
instalations without any result.

Could you please help me ?

Thks
Nicolas



	

	
		
Découvrez nos promotions exclusives "destination de la Tunisie, du Maroc, des Baléares et la Rép. Dominicaine sur Yahoo! Voyages :
http://fr.travel.yahoo.com/promotions/mar14.html




More information about the grass-dev mailing list