Configuring PostgreSQL on linux red hat.
Posted on 2004-08-06
I'm trying to install PostgreSQL onto my linux Red Hat test environment. I downloaded all the required RPMs then looked at the PostgressQL documentation on hte site.
The docs there seem to be for people who are making the binaries from sourse code. They mayke no reference to how to install PostgreSQL on red hat using the rpms.
Anyway. I installed the database using these commands:
rpm -i postgresql-libs-7.4.3-2PGDG.i686.rpm
rpm -i postgresql-7.4.3-2PGDG.i686.rpm
rpm -i postgresql-server-7.4.3-2PGDG.i686.rpm
thats all I have done. when I run createdb or psql I get the error message:
createdb: could not connect to database template1: could not connect to server:
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
I know this is a common error during configuration, but when I look at the documentation for this it doesnt make much sense because is does not seem to be correct for someone installing the rpms for red-hat.
Do I need to set environment variables somehow?
Thanks in advance