banniere

Le portail francophone de la géomatique


Toujours pas inscrit ? Mot de passe oublié ?
Nom d'utilisateur    Mot de passe              Toujours pas inscrit ?   Mot de passe oublié ?

#1 Thu 22 October 2009 10:18

michCarto
Participant actif
Date d'inscription: 8 Sep 2009
Messages: 105

Installation Postgis version de Proj

Bonjour,
j'ai un petit soucis pour l'installation de postgis que je ne trouve pas.
Quand je suis sous /usr/local/postgresql-8.1.4/contrib/postgis-1.4.0

et que je lance ./configure --with-projdir=/usr/local/proj-4.5.0 --with-pgconfig=/usr/local/pgsql/bin/pg_config

il me dis configure: error : PostGis requires PROJ >=4.5.0

mais  j'ai bien cette version de proj quand je tapes proj il y a bien 4.5.0

il doit surement avoir une variable d'environnement mal configueré?

merci

Hors ligne

 

#2 Thu 22 October 2009 10:22

Yves
Membre du bureau
Lieu: Aix-les-Bains
Date d'inscription: 22 Mar 2006
Messages: 9835
Site web

Re: Installation Postgis version de Proj

Bonjour,

--with-projdir doit diriger vers le répertoire d'installation de proj4.5 et non le répertoire des sources wink

Il faut installer proj avant de compiler postgis !

Y.


Yves Jacolin, bénévole de l'association GeoRezo.net, agit au nom et pour le compte de l'association - Partageons ce qui nous départage !!  - GeoRezo vous aide ? Aidez GeoRezo !

Hors ligne

 

#3 Thu 22 October 2009 10:54

michCarto
Participant actif
Date d'inscription: 8 Sep 2009
Messages: 105

Re: Installation Postgis version de Proj

Salut Yves
je te remercie pour ta réponse,
j'ai déja installé Proj quand je tape proj il me mets 4.5.0
mon repertoire d'install est proj-4.5.0

j'ai fait un vi configure dans /usr/local/postgresql-8.1.4/contrib/postgis-1.4.0
je suis allé a l'instruiction  if test ! "$POSTGIS_PROJ_VERSION" -ge 45 Then
j'ai fait un echo de  "$POSTGIS_PROJ_VERSION" moi il me sort 44 donc c'est pour cela
que ca ne marche pas
pourtant quand je tape proj j'ai bien la 4.5.0
merci pour ton retour
Michel

Hors ligne

 

#4 Thu 22 October 2009 11:01

Yves
Membre du bureau
Lieu: Aix-les-Bains
Date d'inscription: 22 Mar 2006
Messages: 9835
Site web

Re: Installation Postgis version de Proj

Bonjour,

Tu dois avoir une ancienne version de proj4, il faut la dé-installer et éventuellement relancer la mise à jour de la BdD des lib avec ldconfig. Il faut généralement ajouter les répertoires des lib installées par compilation dans le fichier /etc/ld.so.conf (attention cela varie en fonction des systèmes).

Y.


Yves Jacolin, bénévole de l'association GeoRezo.net, agit au nom et pour le compte de l'association - Partageons ce qui nous départage !!  - GeoRezo vous aide ? Aidez GeoRezo !

Hors ligne

 

#5 Thu 22 October 2009 11:29

michCarto
Participant actif
Date d'inscription: 8 Sep 2009
Messages: 105

Re: Installation Postgis version de Proj

dans quel fichier de configuration tu peux le voir qu'il y a plusieurs version de proj4
ou la commande ?
merci

Hors ligne

 

#6 Thu 22 October 2009 11:32

Yves
Membre du bureau
Lieu: Aix-les-Bains
Date d'inscription: 22 Mar 2006
Messages: 9835
Site web

Re: Installation Postgis version de Proj

bonjour,

michCarto a écrit:

dans quel fichier de configuration tu peux le voir qu'il y a plusieurs version de proj4
ou la commande ?
merci


Si tu tapes proj4 -v et qu'il te donne la version 4.4 c'est que la version 4.4 est installé, probablement par le système. rpm -e proj4 va désinstaller proj4 mais il risque d'avoir des dépendances.

Normalement, la version compilé et installé est dans /usr/local/bin/ donc /usr/local/binproj4 -v te donnera 4.5

Y.


Yves Jacolin, bénévole de l'association GeoRezo.net, agit au nom et pour le compte de l'association - Partageons ce qui nous départage !!  - GeoRezo vous aide ? Aidez GeoRezo !

Hors ligne

 

#7 Thu 22 October 2009 11:59

michCarto
Participant actif
Date d'inscription: 8 Sep 2009
Messages: 105

Re: Installation Postgis version de Proj

Yves,
j'ai fait un find /usr/local -name proj
il y en une version dans /usr/local/public/R-2.8.0/library/stats/help/proj
peut t'on avec le ./configure faire le paramétrage avec le bonne librairie
remercie

Hors ligne

 

#8 Thu 22 October 2009 14:07

michCarto
Participant actif
Date d'inscription: 8 Sep 2009
Messages: 105

Re: Installation Postgis version de Proj

ben c'est pas celle la zut !!
y a pas des fichiers de configuration linux ou des variables d'environnement
ou sont référencés des informations de proj?
merci

Hors ligne

 

#9 Thu 22 October 2009 14:09

Yves
Membre du bureau
Lieu: Aix-les-Bains
Date d'inscription: 22 Mar 2006
Messages: 9835
Site web

Re: Installation Postgis version de Proj

Bonjour,

Je ne connais pas assez RedHat, mais il existe certainement une application pour voir les rpm installés sur le système. rpmsearch ou un nom comme cela doit exister.

Personnellement j'aurai tenté avec un find /usr/lib/ -name proj car si proj a été installé avec les paquets rpm de Red Hat c'est là qu'il se trouve.

Y.


Yves Jacolin, bénévole de l'association GeoRezo.net, agit au nom et pour le compte de l'association - Partageons ce qui nous départage !!  - GeoRezo vous aide ? Aidez GeoRezo !

Hors ligne

 

#10 Thu 22 October 2009 14:56

michCarto
Participant actif
Date d'inscription: 8 Sep 2009
Messages: 105

Re: Installation Postgis version de Proj

mon administrateur m'a effacé les anciennes proj donc ca passe
mais maintenant j'ai could not find proj_api.h
sachant que j'ai mis cela

Code:

./configure --with-projdir=/usr/local/proj-4.5.0 --with-pgconfig=/usr/local/pgsql/bin/pg_config

et j'ai meme copié ce proj_api.h dans mon repertoire courant
(ou je lance le ./configure) donc ??

Hors ligne

 

#11 Thu 22 October 2009 15:33

Yves
Membre du bureau
Lieu: Aix-les-Bains
Date d'inscription: 22 Mar 2006
Messages: 9835
Site web

Re: Installation Postgis version de Proj

et j'ai meme copié ce proj_api.h dans mon repertoire courant


euh non tu ne touches pas à ce qui est installé wink

Par contre en regardant l'aide du configure, il semble que tu doives utiliser l'option --with-proj-libdir= :

Code:

./configure [--with-projdir] --with-proj-libdir=/usr/local/proj-4.5.0 --with-pgconfig=/usr/local/pgsql/bin/pg_config

entre [] ce qui n'est pas obligatoire wink

Y.


Yves Jacolin, bénévole de l'association GeoRezo.net, agit au nom et pour le compte de l'association - Partageons ce qui nous départage !!  - GeoRezo vous aide ? Aidez GeoRezo !

Hors ligne

 

#12 Thu 22 October 2009 16:02

michCarto
Participant actif
Date d'inscription: 8 Sep 2009
Messages: 105

Re: Installation Postgis version de Proj

Le .configure marche
j'ai mis
./configure  --with-pgconfig=/usr/local/geomatique/pgsql/bin/pg_config --with-projdir=/usr/local/geomatique
c'est ok
maintenant c'est le make qui ne trouve pas postgres.h        et fmgr.h
voir ci dessous
comment ouis je faire
merci !           

Code:

make -C postgis
make[1]: Entering directory `/usr/local/geomatique/postgresql-8.1.4/contrib/postgis-1.4.0/postgis'
gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wendif-labels -fno-strict-aliasing -fpic -I/usr/local/geomatique/include -I/usr/local/geomatique/include -I../liblwgeom -I. -I/usr/local/geomatique/include/server -I/usr/local/geomatique/include/internal -D_GNU_SOURCE   -c -o lwgeom_pg.o lwgeom_pg.c
lwgeom_pg.c:1:22: postgres.h: Aucun fichier ou répertoire de ce type
lwgeom_pg.c:2:18: fmgr.h: Aucun fichier ou répertoire de ce type
lwgeom_pg.c:3:26: executor/spi.h: Aucun fichier ou répertoire de ce type
In file included from lwgeom_pg.c:7:
lwgeom_pg.h:4:22: postgres.h: Aucun fichier ou répertoire de ce type
lwgeom_pg.h:5:29: utils/geo_decls.h: Aucun fichier ou répertoire de ce type
lwgeom_pg.h:6:18: fmgr.h: Aucun fichier ou répertoire de ce type
In file included from lwgeom_pg.c:7:
lwgeom_pg.h:83: error: parse error before "getGeometryOID"
lwgeom_pg.h:83: warning: type defaults to `int' in declaration of `getGeometryOID'
lwgeom_pg.h:83: warning: data definition has no type or storage class
lwgeom_pg.h:95: error: parse error before '*' token
lwgeom_pg.h:96: error: parse error before "BOX"
lwgeom_pg.h:99: error: parse error before "BOX2D_same"
lwgeom_pg.h:99: warning: type defaults to `int' in declaration of `BOX2D_same'
lwgeom_pg.h:99: warning: parameter names (without types) in function declaration
lwgeom_pg.h:99: warning: data definition has no type or storage class
lwgeom_pg.h:100: error: parse error before "BOX2D_overlap"
lwgeom_pg.h:100: warning: type defaults to `int' in declaration of `BOX2D_overlap'
lwgeom_pg.h:100: warning: parameter names (without types) in function declaration
lwgeom_pg.h:100: warning: data definition has no type or storage class
lwgeom_pg.h:101: error: parse error before "BOX2D_overleft"
lwgeom_pg.h:101: warning: type defaults to `int' in declaration of `BOX2D_overleft'
lwgeom_pg.h:101: warning: parameter names (without types) in function declaration
lwgeom_pg.h:101: warning: data definition has no type or storage class
lwgeom_pg.h:102: error: parse error before "BOX2D_left"
lwgeom_pg.h:102: warning: type defaults to `int' in declaration of `BOX2D_left'
lwgeom_pg.h:102: warning: parameter names (without types) in function declaration
lwgeom_pg.h:102: warning: data definition has no type or storage class
lwgeom_pg.h:103: error: parse error before "BOX2D_right"
lwgeom_pg.h:103: warning: type defaults to `int' in declaration of `BOX2D_right'
lwgeom_pg.h:103: warning: parameter names (without types) in function declaration
lwgeom_pg.h:103: warning: data definition has no type or storage class
lwgeom_pg.h:104: error: parse error before "BOX2D_overright"
lwgeom_pg.h:104: warning: type defaults to `int' in declaration of `BOX2D_overright'
lwgeom_pg.h:104: warning: parameter names (without types) in function declaration
lwgeom_pg.h:104: warning: data definition has no type or storage class
lwgeom_pg.h:105: error: parse error before "BOX2D_overbelow"
lwgeom_pg.h:105: warning: type defaults to `int' in declaration of `BOX2D_overbelow'
lwgeom_pg.h:105: warning: parameter names (without types) in function declaration
lwgeom_pg.h:105: warning: data definition has no type or storage class
lwgeom_pg.h:106: error: parse error before "BOX2D_below"
lwgeom_pg.h:106: warning: type defaults to `int' in declaration of `BOX2D_below'
lwgeom_pg.h:106: warning: parameter names (without types) in function declaration
lwgeom_pg.h:106: warning: data definition has no type or storage class
lwgeom_pg.h:107: error: parse error before "BOX2D_above"
lwgeom_pg.h:107: warning: type defaults to `int' in declaration of `BOX2D_above'
lwgeom_pg.h:107: warning: parameter names (without types) in function declaration
lwgeom_pg.h:107: warning: data definition has no type or storage class
lwgeom_pg.h:108: error: parse error before "BOX2D_overabove"
lwgeom_pg.h:108: warning: type defaults to `int' in declaration of `BOX2D_overabove'
lwgeom_pg.h:108: warning: parameter names (without types) in function declaration
lwgeom_pg.h:108: warning: data definition has no type or storage class
lwgeom_pg.h:109: error: parse error before "BOX2D_contained"
lwgeom_pg.h:109: warning: type defaults to `int' in declaration of `BOX2D_contained'
lwgeom_pg.h:109: warning: parameter names (without types) in function declaration
lwgeom_pg.h:109: warning: data definition has no type or storage class
lwgeom_pg.h:110: error: parse error before "BOX2D_contain"
lwgeom_pg.h:110: warning: type defaults to `int' in declaration of `BOX2D_contain'
lwgeom_pg.h:110: warning: parameter names (without types) in function declaration
lwgeom_pg.h:110: warning: data definition has no type or storage class
lwgeom_pg.h:111: error: parse error before "BOX2D_intersects"
lwgeom_pg.h:111: warning: type defaults to `int' in declaration of `BOX2D_intersects'
lwgeom_pg.h:111: warning: parameter names (without types) in function declaration
lwgeom_pg.h:111: warning: data definition has no type or storage class
lwgeom_pg.h:112: error: parse error before "BOX2D_union"
lwgeom_pg.h:112: warning: type defaults to `int' in declaration of `BOX2D_union'
lwgeom_pg.h:112: warning: parameter names (without types) in function declaration
lwgeom_pg.h:112: warning: data definition has no type or storage class
lwgeom_pg.h:114: error: parse error before "LWGEOM_same"
lwgeom_pg.h:114: warning: type defaults to `int' in declaration of `LWGEOM_same'
lwgeom_pg.h:114: warning: parameter names (without types) in function declaration
lwgeom_pg.h:114: warning: data definition has no type or storage class
lwgeom_pg.h:115: error: parse error before "BOX3D_construct"
lwgeom_pg.h:115: warning: type defaults to `int' in declaration of `BOX3D_construct'
lwgeom_pg.h:115: warning: parameter names (without types) in function declaration
lwgeom_pg.h:115: warning: data definition has no type or storage class
lwgeom_pg.h:116: error: parse error before "BOX2DFLOAT4_ymin"
lwgeom_pg.h:116: warning: type defaults to `int' in declaration of `BOX2DFLOAT4_ymin'
lwgeom_pg.h:116: warning: parameter names (without types) in function declaration
lwgeom_pg.h:116: warning: data definition has no type or storage class
lwgeom_pg.h:118: error: parse error before "LWGEOM_force_2d"
lwgeom_pg.h:118: warning: type defaults to `int' in declaration of `LWGEOM_force_2d'
lwgeom_pg.h:118: warning: parameter names (without types) in function declaration
lwgeom_pg.h:118: warning: data definition has no type or storage class
lwgeom_pg.h:119: error: parse error before "LWGEOM_force_3dm"
lwgeom_pg.h:119: warning: type defaults to `int' in declaration of `LWGEOM_force_3dm'
lwgeom_pg.h:119: warning: parameter names (without types) in function declaration
lwgeom_pg.h:119: warning: data definition has no type or storage class
lwgeom_pg.h:120: error: parse error before "LWGEOM_force_3dz"
lwgeom_pg.h:120: warning: type defaults to `int' in declaration of `LWGEOM_force_3dz'
lwgeom_pg.h:120: warning: parameter names (without types) in function declaration
lwgeom_pg.h:120: warning: data definition has no type or storage class
lwgeom_pg.h:121: error: parse error before "LWGEOM_force_4d"
lwgeom_pg.h:121: warning: type defaults to `int' in declaration of `LWGEOM_force_4d'
lwgeom_pg.h:121: warning: parameter names (without types) in function declaration
lwgeom_pg.h:121: warning: data definition has no type or storage class
lwgeom_pg.h:122: error: parse error before "LWGEOM_force_collection"
lwgeom_pg.h:122: warning: type defaults to `int' in declaration of `LWGEOM_force_collection'
lwgeom_pg.h:122: warning: parameter names (without types) in function declaration
lwgeom_pg.h:122: warning: data definition has no type or storage class
lwgeom_pg.h:123: error: parse error before "LWGEOM_force_multi"
lwgeom_pg.h:123: warning: type defaults to `int' in declaration of `LWGEOM_force_multi'
lwgeom_pg.h:123: warning: parameter names (without types) in function declaration
lwgeom_pg.h:123: warning: data definition has no type or storage class
lwgeom_pg.h:125: error: parse error before "LWGEOMFromWKB"
lwgeom_pg.h:125: warning: type defaults to `int' in declaration of `LWGEOMFromWKB'
lwgeom_pg.h:125: warning: parameter names (without types) in function declaration
lwgeom_pg.h:125: warning: data definition has no type or storage class
lwgeom_pg.h:126: error: parse error before "WKBFromLWGEOM"
lwgeom_pg.h:126: warning: type defaults to `int' in declaration of `WKBFromLWGEOM'
lwgeom_pg.h:126: warning: parameter names (without types) in function declaration
lwgeom_pg.h:126: warning: data definition has no type or storage class
lwgeom_pg.h:128: error: parse error before "LWGEOM_getBBOX"
lwgeom_pg.h:128: warning: type defaults to `int' in declaration of `LWGEOM_getBBOX'
lwgeom_pg.h:128: warning: parameter names (without types) in function declaration
lwgeom_pg.h:128: warning: data definition has no type or storage class
lwgeom_pg.h:129: error: parse error before "LWGEOM_addBBOX"
lwgeom_pg.h:129: warning: type defaults to `int' in declaration of `LWGEOM_addBBOX'
lwgeom_pg.h:129: warning: parameter names (without types) in function declaration
lwgeom_pg.h:129: warning: data definition has no type or storage class
lwgeom_pg.h:130: error: parse error before "LWGEOM_dropBBOX"
lwgeom_pg.h:130: warning: type defaults to `int' in declaration of `LWGEOM_dropBBOX'
lwgeom_pg.h:130: warning: parameter names (without types) in function declaration
lwgeom_pg.h:130: warning: data definition has no type or storage class
lwgeom_pg.c: In function `pg_parser_errhint':
lwgeom_pg.c:41: warning: implicit declaration of function `ereport'
lwgeom_pg.c:41: error: `ERROR' undeclared (first use in this function)
lwgeom_pg.c:41: error: (Each undeclared identifier is reported only once
lwgeom_pg.c:41: error: for each function it appears in.)
lwgeom_pg.c:42: warning: implicit declaration of function `errmsg'
lwgeom_pg.c:43: warning: implicit declaration of function `errhint'
lwgeom_pg.c: In function `pg_unparser_errhint':
lwgeom_pg.c:59: warning: implicit declaration of function `elog'
lwgeom_pg.c:59: error: `ERROR' undeclared (first use in this function)
lwgeom_pg.c: In function `pg_alloc':
lwgeom_pg.c:70: warning: implicit declaration of function `palloc'
lwgeom_pg.c:70: warning: assignment makes pointer from integer without a cast
lwgeom_pg.c:76: error: `ERROR' undeclared (first use in this function)
lwgeom_pg.c:76: warning: implicit declaration of function `errmsg_internal'
lwgeom_pg.c: In function `pg_realloc':
lwgeom_pg.c:89: warning: implicit declaration of function `repalloc'
lwgeom_pg.c:89: warning: assignment makes pointer from integer without a cast
lwgeom_pg.c: In function `pg_free':
lwgeom_pg.c:99: warning: implicit declaration of function `pfree'
lwgeom_pg.c: In function `pg_error':
lwgeom_pg.c:112: error: `ERROR' undeclared (first use in this function)
lwgeom_pg.c: In function `pg_notice':
lwgeom_pg.c:129: error: `NOTICE' undeclared (first use in this function)
lwgeom_pg.c: In function `pglwgeom_serialize':
lwgeom_pg.c:157: error: `VARHDRSZ' undeclared (first use in this function)
lwgeom_pg.c:161: warning: assignment makes pointer from integer without a cast
lwgeom_pg.c:162: warning: implicit declaration of function `VARATT_SIZEP'
lwgeom_pg.c:162: error: invalid lvalue in assignment
lwgeom_pg.c:163: warning: implicit declaration of function `VARDATA'
lwgeom_pg.c:163: warning: cast to pointer from integer of different size
lwgeom_pg.c:168: warning: implicit declaration of function `VARSIZE'
lwgeom_pg.c: In function `pglwgeom_deserialize':
lwgeom_pg.c:181: warning: cast to pointer from integer of different size
lwgeom_pg.c: At top level:
lwgeom_pg.c:185: error: parse error before "getGeometryOID"
lwgeom_pg.c:186: warning: return type defaults to `int'
lwgeom_pg.c: In function `getGeometryOID':
lwgeom_pg.c:187: error: syntax error before "OID"
lwgeom_pg.c:189: error: `bool' undeclared (first use in this function)
lwgeom_pg.c:189: error: parse error before "isnull"
lwgeom_pg.c:192: error: `OID' undeclared (first use in this function)
lwgeom_pg.c:192: error: `InvalidOid' undeclared (first use in this function)
lwgeom_pg.c:194: warning: implicit declaration of function `SPI_connect'
lwgeom_pg.c:195: error: `SPI_OK_CONNECT' undeclared (first use in this function)
lwgeom_pg.c:200: warning: implicit declaration of function `SPI_exec'
lwgeom_pg.c:201: error: `SPI_OK_SELECT' undeclared (first use in this function)
lwgeom_pg.c:205: error: `SPI_processed' undeclared (first use in this function)
lwgeom_pg.c:210: error: `Oid' undeclared (first use in this function)
lwgeom_pg.c:210: error: parse error before "SPI_getbinval"
lwgeom_pg.c:213: error: `isnull' undeclared (first use in this function)
lwgeom_pg.c: In function `PG_LWGEOM_construct':
lwgeom_pg.c:264: error: invalid lvalue in assignment
lwgeom_pg.c:272: warning: implicit declaration of function `memcpy'
lwgeom_pg.c: In function `pglwgeom_from_ewkb':
lwgeom_pg.c:308: error: `VARHDRSZ' undeclared (first use in this function)
lwgeom_pg.c:308: warning: cast to pointer from integer of different size
lwgeom_pg.c:310: warning: passing arg 1 of `memcpy' makes pointer from integer without a cast
lwgeom_pg.c: In function `pglwgeom_to_ewkb':
lwgeom_pg.c:335: warning: assignment makes pointer from integer without a cast
make[1]: *** [lwgeom_pg.o] Erreur 1
make[1]: Leaving directory `/usr/local/geomatique/postgresql-8.1.4/contrib/postgis-1.4.0/postgis'

Hors ligne

 

#13 Thu 22 October 2009 16:14

Yves
Membre du bureau
Lieu: Aix-les-Bains
Date d'inscription: 22 Mar 2006
Messages: 9835
Site web

Re: Installation Postgis version de Proj

Bonjour,

Il manque toujours "--with-proj-libdir" dans le configure. Si le make plante c'est qu'il ne trouve pas un fichier, donc que le configure n'est pas correcte.

Y.


Yves Jacolin, bénévole de l'association GeoRezo.net, agit au nom et pour le compte de l'association - Partageons ce qui nous départage !!  - GeoRezo vous aide ? Aidez GeoRezo !

Hors ligne

 

#14 Thu 22 October 2009 16:40

michCarto
Participant actif
Date d'inscription: 8 Sep 2009
Messages: 105

Re: Installation Postgis version de Proj

LDFLAGS=-lstdc++ ./configure  --with-pgconfig=/usr/local/geomatique/pgsql/bin/pg_config --with-projdir=/usr/local/geomatique --with-proj-libdir=/usr/local/geomatique/pgsql/include/server/

             

le make toujours en erreur  sachant que postgres.h se trouve dans ces chemins ci dessous   

/usr/local/geomatique/pgsql/include/server/postgres.h
/usr/local/geomatique/include/postgresql/server/postgres.h

Hors ligne

 

#15 Thu 22 October 2009 16:46

cyrille
Participant assidu
Date d'inscription: 7 Feb 2006
Messages: 394

Re: Installation Postgis version de Proj

Bonjour, veux tu absolument passer par la compilation des sources ? selon ta distribution tu dois avoir des paquets potsgis, la maintenance est largement plus simple...
Si oui tu peux tenter ./configure --help  ? tu obtiendra les options a passer.

Hors ligne

 

#16 Thu 22 October 2009 16:50

michCarto
Participant actif
Date d'inscription: 8 Sep 2009
Messages: 105

Re: Installation Postgis version de Proj

merci cyrille il faut que je trouve en compilant les sources!! om me le demande !! pas le choix

Hors ligne

 

#17 Thu 22 October 2009 17:08

cyrille
Participant assidu
Date d'inscription: 7 Feb 2006
Messages: 394

Re: Installation Postgis version de Proj

Ok essaie donc de rajouter --with-proj-libdir dans ton configure et tu rajoute soit le chemin vers les sources de proj, soit le chemin vers le repertoire d'installation de proj. Ca devrait t'emmener plus loin smile

Hors ligne

 

#18 Thu 22 October 2009 17:34

michCarto
Participant actif
Date d'inscription: 8 Sep 2009
Messages: 105

Re: Installation Postgis version de Proj

cyrille mon probleme est la !!

Code:

lwgeom_pg.c:1:22: postgres.h: Aucun fichier ou répertoire de ce type
lwgeom_pg.c:2:18: fmgr.h: Aucun fichier ou répertoire de ce type
lwgeom_pg.c:3:26: executor/spi.h: Aucun fichier ou répertoire de ce type

! a ton avis ca vient de proj ??


Code:

make -C postgis
make[1]: Entering directory `/usr/local/geomatique/postgresql-8.1.4/contrib/postgis-1.4.0/postgis'
gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wendif-labels -fno-strict-aliasing -fpic -I/usr/local/geomatique/include -I/usr/local/geomatique/include -I../liblwgeom -I. -I/usr/local/geomatique/include/server -I/usr/local/geomatique/include/internal -D_GNU_SOURCE   -c -o lwgeom_pg.o lwgeom_pg.c
lwgeom_pg.c:1:22: postgres.h: Aucun fichier ou répertoire de ce type
lwgeom_pg.c:2:18: fmgr.h: Aucun fichier ou répertoire de ce type
lwgeom_pg.c:3:26: executor/spi.h: Aucun fichier ou répertoire de ce type
In file included from lwgeom_pg.c:7:
lwgeom_pg.h:4:22: postgres.h: Aucun fichier ou répertoire de ce type
lwgeom_pg.h:5:29: utils/geo_decls.h: Aucun fichier ou répertoire de ce type
lwgeom_pg.h:6:18: fmgr.h: Aucun fichier ou répertoire de ce type
In file included from lwgeom_pg.c:7:

Hors ligne

 

#19 Thu 22 October 2009 17:42

Yves
Membre du bureau
Lieu: Aix-les-Bains
Date d'inscription: 22 Mar 2006
Messages: 9835
Site web

Re: Installation Postgis version de Proj

Bonjour,

yves a écrit:

Il faut généralement ajouter les répertoires des lib installées par compilation dans le fichier /etc/ld.so.conf (attention cela varie en fonction des systèmes).


et lancer la commande ldconfig pour mettre à jour la bdd système.

Y.


Yves Jacolin, bénévole de l'association GeoRezo.net, agit au nom et pour le compte de l'association - Partageons ce qui nous départage !!  - GeoRezo vous aide ? Aidez GeoRezo !

Hors ligne

 

#20 Thu 22 October 2009 18:04

michCarto
Participant actif
Date d'inscription: 8 Sep 2009
Messages: 105

Re: Installation Postgis version de Proj

merci yves je teste demain !!
demain est un autre jour !! j'espére la reussite
je te tiens au courant et te remercie bonne soirée

Hors ligne

 

#21 Fri 23 October 2009 10:17

michCarto
Participant actif
Date d'inscription: 8 Sep 2009
Messages: 105

Re: Installation Postgis version de Proj

dans ce fichier j'ai

/usr/X11R6/lib/Xaw95
/usr/X11R6/lib/Xaw3d
/usr/X11R6/lib
/usr/ia64-suse-linux/lib
/usr/local/lib
/usr/openwin/lib
/opt/kde/lib
/opt/kde2/lib
/opt/kde3/lib
/opt/gnome/lib
/opt/gnome2/lib
include /etc/ld.so.conf.d/*.conf
/usr/lib/sgi/
/usr/lib/sysadm/lib
/usr/local/geomatique/lib


faut t'il comme il trouve pas postgres.h que je mette ces chemins ?
/usr/local/geomatique/pgsql/include/server/ --> chemin ou se trouve postgres.h
/usr/local/geomatique/include/postgresql/server/ --> --> chemin ou se trouve postgres.h
/usr/local/geomatique/postgresql-8.1.4/src/backend/tcop/ -->--> chemin ou se trouve postgres.o

merci yves

Hors ligne

 

#22 Fri 23 October 2009 10:19

Yves
Membre du bureau
Lieu: Aix-les-Bains
Date d'inscription: 22 Mar 2006
Messages: 9835
Site web

Re: Installation Postgis version de Proj

Bonjour,

À priori je dirais oui mais je trouve bizarre que tu ais deux fichiers postgres.h dans ton système. N'as tu pas fais deux installations de postgresql ?

Le dernier chemin amène vers les sources de postgresql ? Si oui c'est inutile !

Y.


Yves Jacolin, bénévole de l'association GeoRezo.net, agit au nom et pour le compte de l'association - Partageons ce qui nous départage !!  - GeoRezo vous aide ? Aidez GeoRezo !

Hors ligne

 

#23 Fri 23 October 2009 11:48

michCarto
Participant actif
Date d'inscription: 8 Sep 2009
Messages: 105

Re: Installation Postgis version de Proj

j'ai mis cela

Code:

export PATH=$PATH:/usr/local/geomatique/pgsql/bin/
./configure  --with-pgconfig=/usr/local/geomatique/pgsql/bin/pg_config --with-projdir=/usr/local/geomatique --with-proj-libdir=/usr/local/geomatique/pgsql/bin --with-pgsql=/usr/local/geomatique/pgsql/bin/pg_config

le make est OK
make install aussi
j'en suis a l'importation des sonnées spatiales si Ok ce soir je cloture ce post
pour postgres.h je verifie .....
merci Yves @+

Hors ligne

 

#24 Fri 23 October 2009 15:59

michCarto
Participant actif
Date d'inscription: 8 Sep 2009
Messages: 105

Re: Installation Postgis version de Proj

j'ai cette erreur

Code:

psql:/usr/local/geomatique/pgsql/bin/postgis.sql:3728: ERROR:  current transaction is aborted, commands ignored until end of transaction block

- connecter a postgres via
./psql -U postgres template1
puis createlang plpgsql template1
puis \i /usr/local/geomatisue.pgsql/bin/postgis.sql  ( je l'ai copié dans bien) il me sort cette erreur ci dessus

??? merci

Hors ligne

 

#25 Fri 23 October 2009 16:57

michCarto
Participant actif
Date d'inscription: 8 Sep 2009
Messages: 105

Re: Installation Postgis version de Proj

et j'ai mis dans /etc/ld.so.conf le chemin de  libpq.so.4:

mais j'ai
./createlang plpgsql template1
./createlang: error while loading shared libraries: libpq.so.4: cannot open shared object file: No such file or directory

Hors ligne

 

#26 Fri 23 October 2009 17:03

Yves
Membre du bureau
Lieu: Aix-les-Bains
Date d'inscription: 22 Mar 2006
Messages: 9835
Site web

Re: Installation Postgis version de Proj

Bonjour,

Pas besoin de mettre le chemin vers une lib en particulier. Il faut plutôt mettre le chemin vers le répertoire contenant la lib wink

Puis lancer la commande ldconfig, est ce que cela a bien été fait ?

Y.


Yves Jacolin, bénévole de l'association GeoRezo.net, agit au nom et pour le compte de l'association - Partageons ce qui nous départage !!  - GeoRezo vous aide ? Aidez GeoRezo !

Hors ligne

 

#27 Fri 23 October 2009 17:30

michCarto
Participant actif
Date d'inscription: 8 Sep 2009
Messages: 105

Re: Installation Postgis version de Proj

lib dans ld.so.conf

Code:

/usr/local/geomatique/lib:
        libecpg.so.5 -> libecpg.so.5.1
        libecpg_compat.so.2 -> libecpg_compat.so.2.1
        libpq.so.4 -> libpq.so.4.1
        libgeos-3.1.1.so -> libgeos.so
        libpgtypes.so.2 -> libpgtypes.so.2.1
        libgeos_c.so.1 -> libgeos_c.so.1.6.0
        libproj.so.0 -> libproj.so.0.5.2

ensuite j'ai lancé ldconfig

Code:

 sudo ./ldconfig
./ldconfig: libraries libgeos.so.2 and libgeos.so.2.0.0 in directory /usr/local/lib have same soname but different type.

j'ai un soucis sur libgeos ( erreur bloquante ???? ou ca passe a travers?)


ensuite
deconnection pg et reconnection


Code:

createlang plpgsql template1
createlang: error while loading shared libraries: libpq.so.4: cannot open shared object file: No such file or directory

et j'ai cela !!

merci

Hors ligne

 

#28 Fri 23 October 2009 17:37

Yves
Membre du bureau
Lieu: Aix-les-Bains
Date d'inscription: 22 Mar 2006
Messages: 9835
Site web

Re: Installation Postgis version de Proj

Bonjour,

Bon j'ai jamais eut ce genre d'erreur. Difficile de proposer des pistes. Je crains que le ldconfig ne se termine pas et ne récupère pas toutes les lib.

Selon google cela signifierait que tu as plusieurs lib installées de GEOS wink Si tu l'a compilé plusieurs fois avec des versions différentes il est conseillé de supprimer les vielles versions avec un make uninstall.

error while loading shared libraries: libpq.so.4


Cette erreur est typiquement dû à un ldconfig mal réalisé wink

Y.


Yves Jacolin, bénévole de l'association GeoRezo.net, agit au nom et pour le compte de l'association - Partageons ce qui nous départage !!  - GeoRezo vous aide ? Aidez GeoRezo !

Hors ligne

 

#29 Fri 23 October 2009 17:51

michCarto
Participant actif
Date d'inscription: 8 Sep 2009
Messages: 105

Re: Installation Postgis version de Proj

merci !! j'espere que c'est cela je vois avec mon admin
bon weekend yves et grand merci !

Hors ligne

 

#30 Mon 26 October 2009 09:36

michCarto
Participant actif
Date d'inscription: 8 Sep 2009
Messages: 105

Re: Installation Postgis version de Proj

salut Yves
j'ai supprimé ce path qui me mettez en erreur
j'ai relancé ldconfig ce coup ci sans erreur
mais quand je fais createlang toute cette erreur de error while loading shared libraries: libpq.so.4
!!!

Hors ligne

 

Pied de page des forums

Powered by FluxBB