Précédent   Forum des professionnels en informatique > Bases de données > PostgreSQL
PostgreSQL Forum PostgreSQL. Avant de poster -> F.A.Q PostGreSQL Tutoriels PostGreSQL
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 05/06/2006, 08h39   #1
Membre du Club
 
Inscription : juillet 2005
Messages : 245
Détails du profil
Informations forums :
Inscription : juillet 2005
Messages : 245
Points : 46
Points : 46
Par défaut Chargement de postGIS

j'essaie d'installer postgreSQL/postGIS sous sun solaris.

l'installation de postgreSQL s'est bien passé, la compilation de postGIS aussi.
je crée une base snas problèmes.
pour charger postGIS, je lance les commandes :

createlang plpgsql BaseNico
psql -d BaseNico -f /home/josephine/UnixTools/postgreSQL_postGIS/PostgreSQL/PostgreSQL/share/lwpostgis.sql

là, j'ai les messages d'erreur :

Code :
1
2
3
4
5
6
josephine% psql -d BaseNico -f /home/josephine/UnixTools/postgreSQL_postGIS/PostgreSQL/PostgreSQL/share/lwpostgis.sql
BEGIN
psql:/home/josephine/UnixTools/postgreSQL_postGIS/PostgreSQL/PostgreSQL/share/lwpostgis.sql:44: NOTICE:  type "histogram2d" IS NOT yet defined
DETAIL:  Creating a shell type definition.
psql:/home/josephine/UnixTools/postgreSQL_postGIS/PostgreSQL/PostgreSQL/share/lwpostgis.sql:44: ERROR:  could NOT LOAD library "/home/josephine/UnixTools/postgreSQL_postGIS/PostgreSQL/PostgreSQL/lib/liblwgeom.so.1.1": ld.so.1: /home/josephine/UnixTools/postgreSQL_postGIS/PostgreSQL/PostgreSQL/bin/postmaster: fatal: relocation error: file /home/josephine/UnixTools/bibli_gnu/lib/libstdc++.so.6: symbol __eprintf: referenced symbol NOT found
psql:/home/josephine/UnixTools/postgreSQL_postGIS/PostgreSQL/PostgreSQL/share/lwpostgis.sql:49: ERROR:  current transaction IS aborted, commands ignored until end of transaction block
qu'est-ce que j'ai oublié ?
comment défini-t-on le type histogram2d ? est-ce que les erreurs suivantes sont dûes au fait que ce type n'est pas défini ?
DiverSIG est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 06/06/2006, 11h23   #2
Membre du Club
 
Inscription : juillet 2005
Messages : 245
Détails du profil
Informations forums :
Inscription : juillet 2005
Messages : 245
Points : 46
Points : 46
j'ai mis le chemin de pg dans le fichier ld.config, mais ça ne marche toujours pas.

quand je fais un ldd, il trouve correctement toutes les dépendances :

Code :
1
2
3
4
5
6
7
8
9
10
ldd liblwgeom.so.1.1
        libgeos_c.so.1 =>        /home/josephine/UnixTools/postgreSQL_postGIS/PostgreSQL/PostgreSQL/lib/libgeos_c.so.1
        libproj.so.0 =>  /home/josephine/UnixTools/mapserver/proj4/proj4/lib/libproj.so.0
        libgcc_s.so.1 =>         /home/josephine/UnixTools/bibli_gnu/lib/libgcc_s.so.1
        libgeos.so.2 =>  /home/josephine/UnixTools/postgreSQL_postGIS/PostgreSQL/PostgreSQL/lib/libgeos.so.2
        libstdc++.so.6 =>        /home/josephine/UnixTools/bibli_gnu/lib/libstdc++.so.6
        libm.so.1 =>     /usr/lib/libm.so.1
        libc.so.1 =>     /usr/lib/libc.so.1
        libdl.so.1 =>    /usr/lib/libdl.so.1
        /usr/platform/SUNW,Sun-Blade-1000/lib/libc_psr.so.1
alors qu'est ce qui cloche ??
DiverSIG est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 08/06/2006, 13h59   #3
Invité régulier
 
Inscription : mai 2006
Messages : 20
Détails du profil
Informations forums :
Inscription : mai 2006
Messages : 20
Points : 9
Points : 9
J'ai le même soucis que toi pourtant aussi mes librairies sont bien chargées.

As tu résolu ton problème?
Drmalcolm est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 02/11/2009, 13h58   #4
Membre du Club
 
Inscription : mai 2004
Messages : 183
Détails du profil
Informations forums :
Inscription : mai 2004
Messages : 183
Points : 66
Points : 66
Par défaut ln -s

j'ai eu un probleme avec ldconfig (etc/ld.so.conf)
mais aussi ld_library_path
mais avec le ln -s ca doit passer
@+
moulery est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 19h47.


 
 
 
 
Partenaires

Hébergement Web