useradd -d /opt/postgresql7 postgres7 chown -R postgres7:postgres7 /opt/postgresql7 yum install readline-devel zlib-devel cd /usr/local/src wget http://ftp.postgresql.org/pub/source/v7.3.10/postgresql-7.3.10.tar.gz tar -zxvf postgresql-7.3.10.tar.gz chown -R postgres7:postgres7 ./postgresql-7.3.10 cd postgresql-7.3.10 sudo -u postgres7 -H ./configure --prefix=/opt/postgresql7 --enable-multibyte=UTF8 --with-pgport=5433 sudo -u postgres7 -H make all make install service postgresql stop sudo -u postgres7 -H mkdir /opt/postgresql7/data sudo -u postgres7 -H /opt/postgresql7/bin/initdb -D /opt/postgresql7/data sudo -u postgres7 -H /opt/postgresql7/bin/pg_ctl -D /opt/postgresql7/data -l /opt/postgresql7/logfile start