View previous topic :: View next topic |
Author |
Message |
rivent Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/gallery/Monkey Island/Monkey_Island_-_Guybrush2.gif)
Joined: 08 Oct 2005 Posts: 154
|
Posted: Sat Jan 28, 2006 10:58 am Post subject: [risolto][postgresql] init avvio e pgadmin3 non si compila |
|
|
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.
|
![Question :?:](images/smiles/icon_question.gif)
Last edited by rivent on Sun Jan 29, 2006 3:05 pm; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Ic3M4n Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/108089865444d4c570e38bb.gif)
Joined: 02 Nov 2004 Posts: 3489 Location: Bergamo.
|
Posted: Sat Jan 28, 2006 11:09 am Post subject: |
|
|
quel pango_x_get_context non mi è nuovo. ![Rolling Eyes :roll:](images/smiles/icon_rolleyes.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
.:chrome:. Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/1738078993454a825c7608f.jpg)
Joined: 19 Feb 2005 Posts: 4588 Location: Brescia, Italy
|
Posted: Sat Jan 28, 2006 11:12 am Post subject: Re: [postgresasql] init avvio e pgadmin3 non si compila |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
rivent Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/gallery/Monkey Island/Monkey_Island_-_Guybrush2.gif)
Joined: 08 Oct 2005 Posts: 154
|
Posted: Sat Jan 28, 2006 11:27 am Post subject: Re: [postgresasql] init avvio e pgadmin3 non si compila |
|
|
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...
coma si fa a vedere se esistono utente e gruppo? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
.:chrome:. Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/1738078993454a825c7608f.jpg)
Joined: 19 Feb 2005 Posts: 4588 Location: Brescia, Italy
|
Posted: Sat Jan 28, 2006 11:52 am Post subject: Re: [postgresasql] init avvio e pgadmin3 non si compila |
|
|
guardi in /etc/passwd e /etc/group |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
rivent Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/gallery/Monkey Island/Monkey_Island_-_Guybrush2.gif)
Joined: 08 Oct 2005 Posts: 154
|
Posted: Sat Jan 28, 2006 12:33 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
.:chrome:. Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/1738078993454a825c7608f.jpg)
Joined: 19 Feb 2005 Posts: 4588 Location: Brescia, Italy
|
Posted: Sat Jan 28, 2006 12:58 pm Post subject: |
|
|
rimuovi tutto e reinstalla. fai attenzione ad eliminare anche /var/lib/postgresql/ e tutto il suo contenuto |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
rivent Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/gallery/Monkey Island/Monkey_Island_-_Guybrush2.gif)
Joined: 08 Oct 2005 Posts: 154
|
Posted: Sat Jan 28, 2006 1:04 pm Post subject: |
|
|
come si fa?
Code: | emerge unmerge postgressql |
? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Wise Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 05 May 2004 Posts: 87
|
Posted: Sat Jan 28, 2006 1:20 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
rivent Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/gallery/Monkey Island/Monkey_Island_-_Guybrush2.gif)
Joined: 08 Oct 2005 Posts: 154
|
Posted: Sat Jan 28, 2006 1:46 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
.:chrome:. Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/1738078993454a825c7608f.jpg)
Joined: 19 Feb 2005 Posts: 4588 Location: Brescia, Italy
|
Posted: Sat Jan 28, 2006 1:56 pm Post subject: |
|
|
questo DEVI poterlo fare
però guarda che tutte queste cose sono scritte nella documentazione. dalle un'occhiata |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
rivent Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/gallery/Monkey Island/Monkey_Island_-_Guybrush2.gif)
Joined: 08 Oct 2005 Posts: 154
|
Posted: Sat Jan 28, 2006 2:09 pm Post subject: |
|
|
k.gothmog wrote: |
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 |
|
![](templates/gentoo/images/spacer.gif) |
.:chrome:. Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/1738078993454a825c7608f.jpg)
Joined: 19 Feb 2005 Posts: 4588 Location: Brescia, Italy
|
Posted: Sat Jan 28, 2006 2:25 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
rivent Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/gallery/Monkey Island/Monkey_Island_-_Guybrush2.gif)
Joined: 08 Oct 2005 Posts: 154
|
Posted: Sat Jan 28, 2006 2:26 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
rivent Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/gallery/Monkey Island/Monkey_Island_-_Guybrush2.gif)
Joined: 08 Oct 2005 Posts: 154
|
Posted: Sat Jan 28, 2006 2:27 pm Post subject: |
|
|
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 ...
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 |
|
![](templates/gentoo/images/spacer.gif) |
MeMyselfAndI l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/164016826746e0322068eb2.png)
Joined: 15 Nov 2005 Posts: 784 Location: Between the monitor and the chair
|
Posted: Sat Jan 28, 2006 2:50 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
.:chrome:. Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/1738078993454a825c7608f.jpg)
Joined: 19 Feb 2005 Posts: 4588 Location: Brescia, Italy
|
Posted: Sat Jan 28, 2006 3:01 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
rivent Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/gallery/Monkey Island/Monkey_Island_-_Guybrush2.gif)
Joined: 08 Oct 2005 Posts: 154
|
Posted: Sat Jan 28, 2006 3:02 pm Post subject: |
|
|
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 :
? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
rivent Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/gallery/Monkey Island/Monkey_Island_-_Guybrush2.gif)
Joined: 08 Oct 2005 Posts: 154
|
Posted: Sat Jan 28, 2006 3:04 pm Post subject: |
|
|
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....... ![Shocked 8O](images/smiles/icon_eek.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
MeMyselfAndI l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/164016826746e0322068eb2.png)
Joined: 15 Nov 2005 Posts: 784 Location: Between the monitor and the chair
|
Posted: Sat Jan 28, 2006 4:30 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
MeMyselfAndI l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/164016826746e0322068eb2.png)
Joined: 15 Nov 2005 Posts: 784 Location: Between the monitor and the chair
|
Posted: Sat Jan 28, 2006 4:42 pm Post subject: |
|
|
rivent wrote: |
adesso mi da:
Code: | # /etc/init.d/postgresql restart
* Caching service dependencies ... [ ok ]
* Restarting PostgreSQL ...
postmaster stopped [ ok ]
#
|
è normale che dia :
? |
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 |
|
![](templates/gentoo/images/spacer.gif) |
rivent Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/gallery/Monkey Island/Monkey_Island_-_Guybrush2.gif)
Joined: 08 Oct 2005 Posts: 154
|
Posted: Sat Jan 28, 2006 5:13 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
.:chrome:. Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/1738078993454a825c7608f.jpg)
Joined: 19 Feb 2005 Posts: 4588 Location: Brescia, Italy
|
Posted: Sat Jan 28, 2006 6:47 pm Post subject: |
|
|
è 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 |
|
![](templates/gentoo/images/spacer.gif) |
MeMyselfAndI l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/164016826746e0322068eb2.png)
Joined: 15 Nov 2005 Posts: 784 Location: Between the monitor and the chair
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
rivent Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/gallery/Monkey Island/Monkey_Island_-_Guybrush2.gif)
Joined: 08 Oct 2005 Posts: 154
|
Posted: Sun Jan 29, 2006 12:03 pm Post subject: |
|
|
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! 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 |
|
![](templates/gentoo/images/spacer.gif) |
|