Elton Luiz
(usa Slackware)
Enviado em 28/08/2011 - 21:25h
estou utilizando o Slackware 13.1 Utilizando
seguindo esse exemplo nao obtive exito...
http://www.vivaolinux.com.br/artigo/Instalando-o-PostgreSQL-no-Slackware
root@elton:/home/elton# installpkg postgresql-9.0.3-i486-1sl.txz
Verifying package postgresql-9.0.3-i486-1sl.txz.
Installing package postgresql-9.0.3-i486-1sl.txz:
PACKAGE DESCRIPTION:
# PostgreSQL (Relational Database Server)
#
# PostgreSQL is an advanced Object-Relational database management
# system (DBMS) that supports almost all SQL constructs
# (including transactions, subselects and user-defined types
# and functions).
#
Executing install script for postgresql-9.0.3-i486-1sl.txz.
Package postgresql-9.0.3-i486-1sl.txz installed.
1) root@elton:/home/elton# su - postgres
No directory, logging in with HOME=/
root@elton:/home/elton#
Depois da dica do SMarcell
# usermod -d /var/lib/postgres/ postgres
ele retorna exatamente a mesma coisa do texto 1
entao segui para o proximo passou e ocorreu o seguinte :
elton@elton:~$ su - postgres
Password:
su: Authentication failure
root@elton:/home/elton:~$ initdb -D /var/lib/posgresql/data
initdb: cannot be run as root
Please log in (using, e.g., "su") as the (unprivileged) user that will
own the server process.
Lembrando que ja fiz esse comando tambem como usuario root#
# mkdir /var/lib/posgresql/postgres
mkdir: cannot create directory `/var/lib/posgresql/postgres': No such file or directory
root@elton:/home/elton# exit
elton@elton:~$ mkdir /var/lib/posgresql/postgres
mkdir: cannot create directory `/var/lib/posgresql/postgres': No such file or directory
Smarcell quero lhe agradecer pelo o empenho em me ajudar :
mais a saida esta aqui >
root@elton:/home/elton# grep postgres /etc/passwd
postgres:x:209:209:PostgreSQL ORDBMS:/var/lib/postgres/:/bin/false