Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[risolto][postgresql] init avvio e pgadmin3 non si compila
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
rivent
Apprentice
Apprentice


Joined: 08 Oct 2005
Posts: 154

PostPosted: Sat Jan 28, 2006 10:58 am    Post subject: [risolto][postgresql] init avvio e pgadmin3 non si compila Reply with quote

ho emerge postgressql.

con il ccomando /etc/init.d/postgresql start

mi da:
Code:
* Starting PostgreSQL ...
su: Authentication service cannot retrieve authentication info.
(Ignored)                                                                                                       [ ok ]



?


poi ho emerso pgadmin3 ma da il seguente errore:
Code:
6 -lwx_gtk2u_core-2.6 -lwx_baseu_xml-2.6 -lwx_baseu_net-2.6 -lwx_baseu-2.6  -pthread   -lwx_gtk2u_stc-2.6 -lwx_gtk2u_ogl-2.6 -lwx_baseu-2.6
/usr/lib/libwx_gtk2u_core-2.6.so: undefined reference to `pango_x_get_context'
collect2: ld returned 1 exit status
make[2]: *** [pgadmin3] Error 1
make[2]: Leaving directory `/var/tmp/portage/pgadmin3-1.2.2/work/pgadmin3-1.2.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/pgadmin3-1.2.2/work/pgadmin3-1.2.2'
make: *** [all] Error 2

!!! ERROR: dev-db/pgadmin3-1.2.2 failed.
!!! Function src_compile, Line 48, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.



:?:


Last edited by rivent on Sun Jan 29, 2006 3:05 pm; edited 1 time in total
Back to top
View user's profile Send private message
Ic3M4n
Advocate
Advocate


Joined: 02 Nov 2004
Posts: 3489
Location: Bergamo.

PostPosted: Sat Jan 28, 2006 11:09 am    Post subject: Reply with quote

quel pango_x_get_context non mi è nuovo. :roll:
Back to top
View user's profile Send private message
.:chrome:.
Advocate
Advocate


Joined: 19 Feb 2005
Posts: 4588
Location: Brescia, Italy

PostPosted: Sat Jan 28, 2006 11:12 am    Post subject: Re: [postgresasql] init avvio e pgadmin3 non si compila Reply with quote

il primo errore è un fallimento nelle chiamate a SETUID/SETGID
sei sicuro che l'installazione sia andata a buon fine? esistono utente e gruppo postgresql? l'utente ha una shell?
Back to top
View user's profile Send private message
rivent
Apprentice
Apprentice


Joined: 08 Oct 2005
Posts: 154

PostPosted: Sat Jan 28, 2006 11:27 am    Post subject: Re: [postgresasql] init avvio e pgadmin3 non si compila Reply with quote

k.gothmog wrote:
il primo errore è un fallimento nelle chiamate a SETUID/SETGID
sei sicuro che l'installazione sia andata a buon fine? esistono utente e gruppo postgresql? l'utente ha una shell?


scusa l'ignoranza... :oops:

coma si fa a vedere se esistono utente e gruppo?
Back to top
View user's profile Send private message
.:chrome:.
Advocate
Advocate


Joined: 19 Feb 2005
Posts: 4588
Location: Brescia, Italy

PostPosted: Sat Jan 28, 2006 11:52 am    Post subject: Re: [postgresasql] init avvio e pgadmin3 non si compila Reply with quote

guardi in /etc/passwd e /etc/group
Back to top
View user's profile Send private message
rivent
Apprentice
Apprentice


Joined: 08 Oct 2005
Posts: 154

PostPosted: Sat Jan 28, 2006 12:33 pm    Post subject: Reply with quote

Code:

#  cat /etc/group | grep postgres
postgres::70:
#  cat /etc/group | grep postgres
postgres::70:
# cat /etc/passwd | grep postgres
postgres:x:70:70::/var/lib/postgresql:/bin/bash
#


l'utente e il gruppo sembrano esserci...

ho aggiunto l'utente al gruppo postgres, ma se provo ad avviarlo mi da:
Code:

$ postgres
postgres does not know where to find the server configuration file.
You must specify the --config-file or -D invocation option or set the PGDATA environment variable.
 $

Back to top
View user's profile Send private message
.:chrome:.
Advocate
Advocate


Joined: 19 Feb 2005
Posts: 4588
Location: Brescia, Italy

PostPosted: Sat Jan 28, 2006 12:58 pm    Post subject: Reply with quote

rimuovi tutto e reinstalla. fai attenzione ad eliminare anche /var/lib/postgresql/ e tutto il suo contenuto
Back to top
View user's profile Send private message
rivent
Apprentice
Apprentice


Joined: 08 Oct 2005
Posts: 154

PostPosted: Sat Jan 28, 2006 1:04 pm    Post subject: Reply with quote

come si fa?

Code:
emerge unmerge postgressql


?
Back to top
View user's profile Send private message
Wise
Tux's lil' helper
Tux's lil' helper


Joined: 05 May 2004
Posts: 87

PostPosted: Sat Jan 28, 2006 1:20 pm    Post subject: Reply with quote

Ciao

per disinstallare un programma si usa:
Code:
 emerge -C nomepacchetto

o
Code:
 emerge --unmerge nomepacchetto


ma prima di reinstallare...
- hai visto che l'ebuild del postgresql ti dice che devi eseguire un comando per inizializare tutto?
- prova a loggarti con l'untente postgres e avviare da li.. i file di configurazione dovrebbero essere in /var/lib/postgresql/data, la cartella ha i permessi di lettura solo per l'utente postgres quindi non dovrebbe darti errore...

Spero di esserti stato di aiuto
Back to top
View user's profile Send private message
rivent
Apprentice
Apprentice


Joined: 08 Oct 2005
Posts: 154

PostPosted: Sat Jan 28, 2006 1:46 pm    Post subject: Reply with quote

Wise wrote:

- prova a loggarti con l'untente postgres e avviare da li.. i file di configurazione dovrebbero essere in /var/lib/postgresql/data, la cartella ha i permessi di lettura solo per l'utente postgres quindi non dovrebbe darti errore...


non riesco a loggarmi come utente postgre perche non conosco la password e da root non me la fa impostare per l'utente postgre
Back to top
View user's profile Send private message
.:chrome:.
Advocate
Advocate


Joined: 19 Feb 2005
Posts: 4588
Location: Brescia, Italy

PostPosted: Sat Jan 28, 2006 1:56 pm    Post subject: Reply with quote

Code:
su - postgres

questo DEVI poterlo fare
però guarda che tutte queste cose sono scritte nella documentazione. dalle un'occhiata
Back to top
View user's profile Send private message
rivent
Apprentice
Apprentice


Joined: 08 Oct 2005
Posts: 154

PostPosted: Sat Jan 28, 2006 2:09 pm    Post subject: Reply with quote

k.gothmog wrote:
Code:
su - postgres

questo DEVI poterlo fare
però guarda che tutte queste cose sono scritte nella documentazione. dalle un'occhiata


non riesco perchè chiede la password

dov'è la documentazione per postres su gentoo?
Back to top
View user's profile Send private message
.:chrome:.
Advocate
Advocate


Joined: 19 Feb 2005
Posts: 4588
Location: Brescia, Italy

PostPosted: Sat Jan 28, 2006 2:25 pm    Post subject: Reply with quote

rivent wrote:
non riesco perchè chiede la password
a root non deve essere chiesta nessuna password, a meno che tu non abbia combinato casini con i file di configurazione di PAM, nel qual caso hai combinato casini grossi!
rivent wrote:
dov'è la documentazione per postres su gentoo?
dove è dormale che sia: /usr/share/doc, come in tutti i sistemi UNIX
Back to top
View user's profile Send private message
rivent
Apprentice
Apprentice


Joined: 08 Oct 2005
Posts: 154

PostPosted: Sat Jan 28, 2006 2:26 pm    Post subject: Reply with quote

ok, sono riuscito a far funzionare postrgres
ho trovato questo how-to:

http://gentoo-wiki.com/HOWTO_Configure_Postgresql

quando avvio l'init script però mi da ancora:
Code:
/etc/init.d/postgresql restart
 * Restarting PostgreSQL ...
su: Authentication service cannot retrieve authentication info.
(Ignored)
postmaster stopped


comunque riesco a creare i database e funziona...

ora mi resta il problema che non riesco a emergere pgadmin3...
Back to top
View user's profile Send private message
rivent
Apprentice
Apprentice


Joined: 08 Oct 2005
Posts: 154

PostPosted: Sat Jan 28, 2006 2:27 pm    Post subject: Reply with quote

k.gothmog wrote:
rivent wrote:
non riesco perchè chiede la password
a root non deve essere chiesta nessuna password, a meno che tu non abbia combinato casini con i file di configurazione di PAM, nel qual caso hai combinato casini grossi!
rivent wrote:
dov'è la documentazione per postres su gentoo?
dove è dormale che sia: /usr/share/doc, come in tutti i sistemi UNIX


si, infatti non lo avevo eseguito da root.... scusa :oops: ...

con cosa li leggo i file .gz in /usr/share/doc ??


Last edited by rivent on Sat Jan 28, 2006 2:58 pm; edited 1 time in total
Back to top
View user's profile Send private message
MeMyselfAndI
l33t
l33t


Joined: 15 Nov 2005
Posts: 784
Location: Between the monitor and the chair

PostPosted: Sat Jan 28, 2006 2:50 pm    Post subject: Reply with quote

per risolvere il problema dell'init di posgres non e' necessario reinstallare.. semplicemente manca una riga nel file /etc/shadow per l'utente postgres.. basta che la aggiungi li dentro seguendo lo scema delle altre e sei a posto

Code:

nitro ~ $ sudo cat /etc/shadow | grep -i postgres
postgres:*:9797:0:::::
Back to top
View user's profile Send private message
.:chrome:.
Advocate
Advocate


Joined: 19 Feb 2005
Posts: 4588
Location: Brescia, Italy

PostPosted: Sat Jan 28, 2006 3:01 pm    Post subject: Reply with quote

rivent wrote:
con cosa li leggo i file .gz in /usr/share/doc ??
semplicemente con less

MeMyselfAndI wrote:
per risolvere il problema dell'init di posgres non e' necessario reinstallare.. semplicemente manca una riga nel file /etc/shadow per l'utente postgres.. basta che la aggiungi li dentro seguendo lo scema delle altre e sei a posto
ma se c'è l'utente postgres in /etc/passwd ci deve essere anche la riga relativa in /etc/shadow, a meno che non si sia corrotto PAM
Back to top
View user's profile Send private message
rivent
Apprentice
Apprentice


Joined: 08 Oct 2005
Posts: 154

PostPosted: Sat Jan 28, 2006 3:02 pm    Post subject: Reply with quote

MeMyselfAndI wrote:
per risolvere il problema dell'init di posgres non e' necessario reinstallare.. semplicemente manca una riga nel file /etc/shadow per l'utente postgres.. basta che la aggiungi li dentro seguendo lo scema delle altre e sei a posto

Code:

nitro ~ $ sudo cat /etc/shadow | grep -i postgres
postgres:*:9797:0:::::



ok, grazie!

adesso mi da:
Code:
# /etc/init.d/postgresql restart
 * Caching service dependencies ...                                                                             [ ok ]
 * Restarting PostgreSQL ...
postmaster stopped                                                                                              [ ok ]
#


è normale che dia :
Code:
postmaster stopped

?
Back to top
View user's profile Send private message
rivent
Apprentice
Apprentice


Joined: 08 Oct 2005
Posts: 154

PostPosted: Sat Jan 28, 2006 3:04 pm    Post subject: Reply with quote

k.gothmog wrote:
rivent wrote:
con cosa li leggo i file .gz in /usr/share/doc ??
semplicemente con less

ok, grazie!

Quote:
ma se c'è l'utente postgres in /etc/passwd ci deve essere anche la riga relativa in /etc/shadow, a meno che non si sia corrotto PAM


infatti non c'era....... 8O
Back to top
View user's profile Send private message
MeMyselfAndI
l33t
l33t


Joined: 15 Nov 2005
Posts: 784
Location: Between the monitor and the chair

PostPosted: Sat Jan 28, 2006 4:30 pm    Post subject: Reply with quote

k.gothmog wrote:

ma se c'è l'utente postgres in /etc/passwd ci deve essere anche la riga relativa in /etc/shadow, a meno che non si sia corrotto PAM

Sembra sia un problema comune a precchia gente del forum,, quindi o e' un baco di postgres o di pam,, cmq con la procedura elencata sopra si risolve tutto..
Back to top
View user's profile Send private message
MeMyselfAndI
l33t
l33t


Joined: 15 Nov 2005
Posts: 784
Location: Between the monitor and the chair

PostPosted: Sat Jan 28, 2006 4:42 pm    Post subject: Reply with quote

rivent wrote:

adesso mi da:
Code:
# /etc/init.d/postgresql restart
 * Caching service dependencies ...                                                                             [ ok ]
 * Restarting PostgreSQL ...
postmaster stopped                                                                                              [ ok ]
#


è normale che dia :
Code:
postmaster stopped

?


non mi sembra normale, almeno a me postmaster me lo stoppa solo quando stoppo postgres, non quando lo avvio... dopo averlo emerso cosa hai fatto?Puoi descrivere passo-passo?
Back to top
View user's profile Send private message
rivent
Apprentice
Apprentice


Joined: 08 Oct 2005
Posts: 154

PostPosted: Sat Jan 28, 2006 5:13 pm    Post subject: Reply with quote

MeMyselfAndI wrote:

non mi sembra normale, almeno a me postmaster me lo stoppa solo quando stoppo postgres, non quando lo avvio... dopo averlo emerso cosa hai fatto?Puoi descrivere passo-passo?


ho emerso postgresql (8.0.4)

poi ho eseguito: emerge --config =postgresql-8.0.4

poi ho eseguito: emerge pgadmin3, ma non si compila....

poi ho iniziato la discussione qui...

ho aggiunto l'utente al gruppo postgres, poi ho aggiunto la riga ropra indicata in /etc/shadow


a questo punto:

/etc/init.d/postgresql start

mi da:
postmaster stopped

ma con su -postrgres riesco a usare il database.

e pgadmin3 non si compila ancora, l'errore è uguale a quello del messaggio all'inizio..
Back to top
View user's profile Send private message
.:chrome:.
Advocate
Advocate


Joined: 19 Feb 2005
Posts: 4588
Location: Brescia, Italy

PostPosted: Sat Jan 28, 2006 6:47 pm    Post subject: Reply with quote

è un difetto dello script di avvio: quando fai il restart dice quando ha fermato il server ma non quando lo ha fatto ripartire.

puoi controllare nella lista dei processi e delle porte aperte e verificare che postgreSQL e il relativo socket TCP ci sono
Back to top
View user's profile Send private message
MeMyselfAndI
l33t
l33t


Joined: 15 Nov 2005
Posts: 784
Location: Between the monitor and the chair

PostPosted: Sat Jan 28, 2006 7:50 pm    Post subject: Reply with quote

dai una lettura a questo : http://gentoo-wiki.com/HOWTO_Configure_Postgresql
Back to top
View user's profile Send private message
rivent
Apprentice
Apprentice


Joined: 08 Oct 2005
Posts: 154

PostPosted: Sun Jan 29, 2006 12:03 pm    Post subject: Reply with quote

MeMyselfAndI wrote:
dai una lettura a questo : http://gentoo-wiki.com/HOWTO_Configure_Postgresql

si, è quello che ho indicato io prima...


k.gothmog wrote:
è un difetto dello script di avvio: quando fai il restart dice quando ha fermato il server ma non quando lo ha fatto ripartire.

puoi controllare nella lista dei processi e delle porte aperte e verificare che postgreSQL e il relativo socket TCP ci sono


si, infatti dopo il riavvio del pc e il primo start non da quel messaggio.

Adesso postrgres funziona! :D grazie a tutti!

mi rimane il problema che pgadmin3 non si compila.... :? aveve qualche idea? il messaggio di errore è uguale a quello che ho scritto nel primo post.


Last edited by rivent on Sun Jan 29, 2006 12:44 pm; edited 1 time in total
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum