Advertisement
Guest User

install fail postgresql in ubuntu 12.04

a guest
Aug 8th, 2012
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.55 KB | None | 0 0
  1. # aptitude install postgresql-9.1 postgresql-client-9.1
  2.  
  3. Configurando libpq5 (9.1.4-0ubuntu12.04) ...
  4. Configurando postgresql-client-common (129) ...
  5. Configurando postgresql-client-9.1 (9.1.4-0ubuntu12.04) ...
  6. update-alternatives: a usar /usr/share/postgresql/9.1/man/man1/psql.1.gz para disponibilizar /usr/share/man/man1/psql.1.gz (psql.1.gz) em modo automático.
  7. Configurando postgresql-common (129) ...
  8. Building PostgreSQL dictionaries from installed myspell/hunspell packages...
  9. en_us
  10. pt
  11. pt_br
  12. Configurando postgresql-9.1 (9.1.4-0ubuntu12.04) ...
  13. Creating new cluster (configuration: /etc/postgresql/9.1/main, data: /var/lib/postgresql/9.1/main)...
  14. initdb: could not change permissions of directory "/var/lib/postgresql/9.1/main": Operação não permitida
  15. Error: initdb failed
  16. Error: could not create default cluster. Please create it manually with
  17.  
  18. pg_createcluster 9.1 main --start
  19.  
  20. or a similar command (see 'man pg_createcluster').
  21. update-alternatives: a usar /usr/share/postgresql/9.1/man/man1/postmaster.1.gz para disponibilizar /usr/share/man/man1/postmaster.1.gz (postmaster.1.gz) em modo automático.
  22. Processando gatilhos para libc-bin ...
  23. ldconfig deferred processing now taking place
  24.  
  25. Então tento rodar o comando:
  26. #pg_createcluster 9.1 main --start
  27.  
  28. e recebo o erro:
  29. Creating new cluster (configuration: /etc/postgresql/9.1/main, data: /var/lib/postgresql/9.1/main)...
  30. could not change directory to "/root"
  31. initdb: could not change permissions of directory "/var/lib/postgresql/9.1/main": Operação não permitida
  32. Error: initdb failed
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement