root@bt~:# apt-get install postgresql libpq-dev
root@bt~:# su postgres -c psql
postgres=#
postgres=# postgres=# “ALTER USER postgres WITH PASSWORD ‘su password’
postgres=# q
root@bt~:# passwd postgres
root@bt~:# gem install pg
pero solo al hacer la instalacion de postresql
root@bt~:# apt-get install postgresql libpq-dev
me salta esto:
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libpq-dev: Depends: libpq5 (= 8.4.3-1) but 8.4.8-0ubuntu0.10.04 is to be installed
Depends: libssl-dev but it is not going to be installed
Depends: libkrb5-dev but it is not going to be installed
Depends: comerr-dev but it is not going to be installed
E: Broken packages
y pruebo de instalar lo que me dice pero tampoco puedo. Por que necesito instalar postgres si ya lo tengo instalado en teoria?
> db_driver
- Active Driver: postgresql
- Available: postgresql
Gracias.
PD: 127.0.0.1 It works
pero Firefox can't establish a connection to the server at 127.0.0.1:5432.