AW: [GRASS5] Grass6 installation problem

Marco Lechner marco.lechner at geographie.uni-freiburg.de
Thu Mar 17 05:35:06 EST 2005


Did you tell ./configure the path to you  postgres-libs
(--with-postgres-libs=/usr/local/pgsql/lib) or only to your
postgres-includes?

marco
---------------------------------
Marco Lechner

office:
Department of Physische Geographie
University of Freiburg
Werderring 4
D-79085 Freiburg
Germany
phone +49 (0)761 / 203-3548
email marco.lechner at geographie.uni-freiburg.de


-----Ursprüngliche Nachricht-----
Von: grass5-admin at grass.itc.it [mailto:grass5-admin at grass.itc.it]Im
Auftrag von BETTON Nicolas
Gesendet: Donnerstag, 17. März 2005 11:18
An: grass5 at grass.itc.it
Betreff: [GRASS5] Grass6 installation problem


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

_______________________________________________
grass5 mailing list
grass5 at grass.itc.it
http://grass.itc.it/mailman/listinfo/grass5




More information about the grass-dev mailing list