OVH Cloud OVH Cloud

Debian postgresql

2 réponses
Avatar
cauchemardesque
Bonjour,

Je tentes d'installer postegresql 7.2.1 sur une debian woody 2.4.19.
J'ai eu plusieur erreur à propos de python lors du premier apt-get,
maitenant quand je fais un apt-get install man-db, j'ai :
Enter default encoding (SQL_ASCII): LATIN1
Now installing the Postgresql database files in /var/lib/postgres/data
su - postgres -c cd /var/lib/postgres; . ./.profile;LANG= initdb
--encoding LATIN1 -- pgdata /var/lib/postgres/data
/usr/lib/postgresql/bin/initdb: /dev/null: Permission denied #4 fois

The program
'/usr/lib/postgresql/bin/posgre'
needed by initdb does not belong to PostgreSQL version 7.2.1 or there
may be a configuration problem.

This was the error message issued by that program:
/usr/lib/posgresql/bin/initdb: /dev/null: Permission denied
dpkg: error processing postgresql (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
posgresql
E: sub-process /usr/bin/dpkg returned an error code (1)

De plus un createdb test me dis :
psql: could not connect to server: No such file or directory
Is the server running localy and accepting
connection on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
createdb: database creation failed

Que faut'il faire pour obtenir postgresql 7.2.1 opperationelle ?

Merci de votre aide

Cauchemare !

2 réponses

Avatar
Scetbon Cyril
cauchemare wrote:
Bonjour,

Je tentes d'installer postegresql 7.2.1 sur une debian woody 2.4.19.
J'ai eu plusieur erreur à propos de python lors du premier apt-get,
maitenant quand je fais un apt-get install man-db, j'ai :
Enter default encoding (SQL_ASCII): LATIN1
Now installing the Postgresql database files in /var/lib/postgres/data
su - postgres -c cd /var/lib/postgres; . ./.profile;LANG= initdb
--encoding LATIN1 -- pgdata /var/lib/postgres/data
/usr/lib/postgresql/bin/initdb: /dev/null: Permission denied #4 fois

The program
'/usr/lib/postgresql/bin/posgre'
needed by initdb does not belong to PostgreSQL version 7.2.1 or there
may be a configuration problem.

This was the error message issued by that program:
/usr/lib/posgresql/bin/initdb: /dev/null: Permission denied
l'erreur à l'air de venir des permissions sur /dev/null

que donne ls -l /dev/null
essaie de lancer la commande echo 1 > /dev/null et de voir si ça renvoie
une erreur
dpkg: error processing postgresql (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
posgresql
E: sub-process /usr/bin/dpkg returned an error code (1)

De plus un createdb test me dis :
psql: could not connect to server: No such file or directory
Is the server running localy and accepting
connection on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
createdb: database creation failed

Que faut'il faire pour obtenir postgresql 7.2.1 opperationelle ?

Merci de votre aide

Cauchemare !


Avatar
cauchemardesque
Bonjour,

Scetbon Cyril wrote in message news:<4110865a$0$15344$...


Je tentes d'installer postegresql 7.2.1 sur une debian woody 2.4.19.
J'ai eu plusieur erreur à propos de python lors du premier apt-get,
maitenant quand je fais un apt-get install man-db, j'ai :
Enter default encoding (SQL_ASCII): LATIN1
Now installing the Postgresql database files in /var/lib/postgres/data
su - postgres -c cd /var/lib/postgres; . ./.profile;LANG= initdb
--encoding LATIN1 -- pgdata /var/lib/postgres/data
/usr/lib/postgresql/bin/initdb: /dev/null: Permission denied #4 fois

The program
'/usr/lib/postgresql/bin/posgre'
needed by initdb does not belong to PostgreSQL version 7.2.1 or there
may be a configuration problem.

This was the error message issued by that program:
/usr/lib/posgresql/bin/initdb: /dev/null: Permission denied
l'erreur à l'air de venir des permissions sur /dev/null

que donne ls -l /dev/null
essaie de lancer la commande echo 1 > /dev/null et de voir si ça renvoie
une erreur


Euh echo de mémoire, à mois que ssa est changer c'est : Affiche à
l'ecran le texte qui suit la commande ? si non pour less droit tous
est en root (user:group). J'ai tenté une réinstall après un apt-get
upgrade puis un apt-get update toujour une erreur au niveau de
l'encodage !
2éme Euh faudrais pas changer le configure du packet deb, si oui
comment ?

dpkg: error processing postgresql (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
posgresql
E: sub-process /usr/bin/dpkg returned an error code (1)

De plus un createdb test me dis :
psql: could not connect to server: No such file or directory
Is the server running localy and accepting
connection on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
createdb: database creation failed




Que faut'il faire pour obtenir postgresql 7.2.1 opérationelle ?

Merci de votre aide

Cauchemare !