Forum .LRN Q&A: Ubuntu package of .LRN

Collapse
45: Ubuntu package of .LRN (response to 1)
Posted by Juan sepulveda on
Hi to everyone I have an error intalling the .lrn.

Firstable I´d like to know if I should install postgresql before the .lrn :

apt-get install dotlrn postgresql or apt-get intall dotlrn( with postgresql installed)

This is the error message that I got trying to install postgres

root@ubuntu:/var/run/postgresql# apt-get install postgresql-7.4
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias... Hecho
Se instalarán los siguientes paquetes NUEVOS:
postgresql-7.4
0 actualizados, 1 se instalarán, 0 para eliminar y 0 no
actualizados.
1 no instalados del todo o eliminados.
Necesito descargar 2584kB de archivos.
Se utilizarán 8360kB de espacio de disco adicional después de
desempaquetar.
Des:1 http://es.archive.ubuntu.com breezy/main postgresql-7.4
1:7.4.8-17ubuntu1 [2584kB]
Descargados 2584kB en 25s (101kB/s)

Preconfigurando paquetes ...
Seleccionando el paquete postgresql-7.4 previamente no seleccionado.
(Leyendo la base de datos ...
69209 ficheros y directorios instalados actualmente.)
Desempaquetando postgresql-7.4 (de
../postgresql-7.4_1%3a7.4.8-17ubuntu1_i386.deb) ...
Configurando dotlrn (2.1.0beta1-4) ...
spawn su - postgres -s /bin/sh -c createuser -A -D -P -E -q www-data
Enter password for new user:
Enter it again:
createuser: could not connect to database template1: 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"?
createdb: could not connect to database template1: 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"?
dpkg: error al procesar dotlrn (--configure):
el subproceso post-installation script devolvió el código de salida
de
error 1
Configurando postgresql-7.4 (7.4.8-17ubuntu1) ...
Creating new cluster (configuration: /etc/postgresql/7.4/main, data:
/var/lib/postgresql/7.4/main)...
Moving configuration file /var/lib/postgresql/7.4/main/pg_hba.conf
to
/etc/postgresql/7.4/main...
Moving configuration file /var/lib/postgresql/7.4/main/pg_ident.conf
to
/etc/postgresql/7.4/main...
Moving configuration file
/var/lib/postgresql/7.4/main/postgresql.conf
to /etc/postgresql/7.4/main...
Configuring postgresql.conf to use port 5432...
* Starting PostgreSQL 7.4 database server: main The PostgreSQL
server
failed to start. Please check the log
output:/usr/lib/postgresql/7.4/bin/postmaster: para usar SSL, se
deben
activar las conexiones TCP/IP


[fail]

Se encontraron errores al procesar:
dotlrn
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@ubuntu:/var/run/postgresql# apt-get install dotlrn
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias... Hecho
dotlrn ya está en su versión más reciente.
0 actualizados, 0 se instalarán, 0 para eliminar y 0 no
actualizados.
1 no instalados del todo o eliminados.
Necesito descargar 0B de archivos.
Se utilizarán 0B de espacio de disco adicional después de
desempaquetar .
Configurando dotlrn (2.1.0beta1-4) ...
spawn su - postgres -s /bin/sh -c createuser -A -D -P -E -q www-data
Enter password for new user:
Enter it again:
createuser: could not connect to database template1: 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"?
createdb: could not connect to database template1: 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"?
dpkg: error al procesar dotlrn (--configure):
el subproceso post-installation script devolvió el código de salida
de
error 1
Se encontraron errores al procesar:
dotlrn
E: Sub-process /usr/bin/dpkg retuon Oct 10 13:14:36 BST 2005 i686
GNU/Linux

I know that is long but this is what I got. ¿¿any help??

Collapse
Posted by Otto Solares on
Do you have your postgresql server in the same box with .LRN? That should work.