su -c '/usr/local/pg722/bin/pg_ctl -D /usr/local/pg722/data -l /home/postgres/logfile_722 stop' postgres adduser postgres export HOME=/usr/local/src/NEW export DEST=/usr/local/pg722 cd $HOME rm -rf postgresql-7.2.2 tar -zxf SRC/postgresql-7.2.2.tar.gz rm -rf $DEST mkdir -p $DEST chown postgres $DEST cp LOCAL/PG/Makefile.PL postgresql-7.2.2/src/pl/plperl/Makefile.PL cp LOCAL/PG/pg_config.h.in postgresql-7.2.2/src/include/pg_config.h.in cd postgresql-7.2.2 # Modify this for Perl 5.8. exit ./configure --prefix=$DEST --with-libraries=/usr/lib/perl5/5.6.0/i386-linux/CORE/libperl.a --with-perl --with-python make make install chown -R postgres $DEST mkdir /home/postgres chown postgres /home/postgres su -l postgres