Tom Adelstein
writes:
On Jun 2nd, 23:31:42 Linux Today posted a fix to
PostgreSQL for Red Hat 5.2. We also knew that PostgreSQL 6.4 in Red
Hat 6.0 didn’t work under the normal installation routine. The
people at Hub and PostgreSql, Inc. took prompt action and provided
a fix for RH 6.0.
Linux users have used PostgreSQL for many years and it remains a
popular product. New users of Linux may find it a great choice for
many applications. Many thanks to the maintainers of the database
for the fix .
Instructions for installing PostgreSQL 6.4.2 on a RedHat
6.0.
by: Jeff MacDonald
Tested on pII 233 with 128 megs of ram.
*************************
For some reason the install doesn’t create all of the
directories, so our job is to do that. That’s about all the extra
work it takes.
- First of all su to root, like this
penguin:~$ su –
- get the rpm (postgres-6.4.2-3.rpm) from
ftp.redhat.com ftp.cdrom.com or off the 6.0
cd. - install it with
penguin:~# rpm -i postgres-6.4.2-3.rpm
- make the approiate directory for postgres you can call it what
ever you prefer, just make sure to substitute /usr/local/pgsql with
what ever you chose.penguin:~# mkdir /usr/local/pgsql
- change ownership of /usr/local/pgsql to the postgres user
penguin:~# chown postgres.postgres
/usr/local/pgsql - su to user “postgres”
penguin:~$ su – postgres
- make the data directory
penguin:~$ mkdir /usr/local/pgsql/data
- run initdb
penguin:~$ initdb –pglib=/usr/lib/pgsql
–pgdata=/usr/local/pgsql/data - run the postmaster, play, and explore
penguin:~$ postmaster -i &