Re: configuracion de postgresql



hola Gracias por ayudarme..necesito algunas precisiones...ya que soy nuevo en
linux ( ubuntu 5.1)


El mié, 26-04-2006 a las 05:54 -0700, dan rojas escribió: 
> Hola a continuacion  les detallo error que me envia el Gestor.... 
> 
> En el primero...trato de crear el usuario ..con el comando que se señala : 
> 
> 
> daniel ubuntu:~/pyGestor$ python test_db.py 
> could not connect to server: No such file or directory 
>         Is the server running locally and accepting 
>         connections on Unix domain socket 
> "/var/run/postgresql/.s.PGSQL.5432"? 

no esta corriendo la base de datos. 



> 
> La base de datos no está funcionando 
> Intente crear el usuario daniel con el siguiente comando: 
> #createuser daniel 

por lo mismo.... 

para crear un usuario debes usar: 

createuser -U postgres -W nombreusuario 

(claro que debes estar arriba la base)   que quieres decir con esto 


/etc/init.d/postgresql-7.4 start|stop|status     (esta es la version que 
tengo yo en mi debian/sid) 

con netstat -atpn compruebas si está arriba, y verás: 

... 
tcp        0      0 0.0.0.0:5432            0.0.0.0:* 
LISTEN     8869/postmaster 
... 

> 
> Necesita tener acceso de superusuario para hacer esta operación 
> Posteriormente puede intentar usar test_db.py para probar la conección 
> daniel ubuntu:~/pyGestor$ 
> 
> 
> En el siguiente me dice que no tengo ..psycopg... baje un paquete de
> debian 
> .org....lo instale (daniel ubuntu:~/psycopg-1.1.21$) 
> 

debes "apt-gearlo" con: 

apt-get install python2.4-psycopg     (o el que esté disponible para 
ubuntu) 

buscalo asi: 
apt-cache search python psycopg 


> 
> daniel ubuntu:~/pyGestor$ python Gestor.py 
> Traceback (most recent call last): 
>   File "Gestor.py", line 37, in ? 
>     from ctb_frm_main import ctb_frm_main 
>   File "/home/daniel/pyGestor/ctb_frm_main.py", line 29, in ? 
>     from ctb_def_empresa import * 
>   File "/home/daniel/pyGestor/ctb_def_empresa.py", line 27, in ? 
>     from ctb_rutinas import * 
>   File "/home/daniel/pyGestor/ctb_rutinas.py", line 35, in ? 
>     from psycopg import connect 
> ImportError: No module named psycopg 
> daniel ubuntu:~/pyGestor$ 
> 

lo anterior debiera solucionarlo 

> 
> Por último algo con postgresql... te cuento que lo instale ..por lommenos 
> eso señala la maquina ...que fue instalado satisfactoria : 
> 
> 
> daniel ubuntu:~/psycopg-1.1.21$ ./configure 
> checking for python... /usr/bin/python 
> checking python version... 2.4 
> checking python installation prefix... /usr 
> checking python installation exec_prefix... /usr 
> checking definitions in Python library makefile... sed: can't read 
> /usr/lib/python2.4/config/Makefile: No such file or directory 
> done 
> checking for install... /usr/bin/install 
> checking location of python library...
> $(prefix)/lib/python2.4/site-packages 
> checking location of python shared modules... 
> $(exec_prefix)/lib/python2.4/site-packages 
> checking for gcc... gcc 
> checking for C compiler default output file name... a.out 
> checking whether the C compiler works... yes 
> checking whether we are cross compiling... no 
> checking for suffix of executables... 
> checking for suffix of object files... o 
> checking whether we are using the GNU C compiler... yes 
> checking whether gcc accepts -g... yes 
> checking for gcc option to accept ANSI C... none needed 
> checking how to run the C preprocessor... gcc -E 
> checking whether make sets $(MAKE)... yes 
> checking for inline... inline 
> checking PostgreSQL version... configure: error: missing PostgreSQL
> headers 
> daniel ubuntu:~/psycopg-1.1.21$ 
> 

no lo instales de fuentes.. si lo puedes "apt-gear" mejor... te evitas 
probleas como éste... de dependencias. 

> 
> ya no se que hacer...estoy a punto de abondonar el tema 

en lo referente a las instalación de PyGestor... cre que te podemos 
ayudar, pero en lo referente a la instalación y administración 
propiamente tal de postgresql es un tema que escapa de esta lista. 

reviza lo que te escribí mas arriba... 

y no te heches a morir y renunciar a la instalación, creo que estás 
tomando el camino mas largo... aprovecha las ventajas de apt. 


Saludos! 

> 
> -- 
> View this message in context:
> http://www.nabble.com/configuracion-de-postgresql-t1264601.html#a4100700 
> Sent from the Gnome - Chile forum at Nabble.com. 
> 
> 
-- 
Alejandro Valdés Jiménez. 
Fono: (56) (71) 200408 
RSS - DITyM. 
Universidad de Talca. 
Talca - Chile. 



la idea no esa...esta claro  en invertido bastante tiempo en el tema.... 
--
View this message in context: http://www.nabble.com/configuracion-de-postgresql-t1264601.html#a4101395
Sent from the Gnome - Chile forum at Nabble.com.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]