インストールメモ。

ひさーしぶりにインストール作業をする事になった。過去に何度かインストールしてるからメモ残してるだろうと思っていたら、一つもメモを残してない罠。俺の馬鹿!!
そんな経緯もあり、次回作業時に INSTALL を読み返したり、ググル先生にお伺いせずに済むよう、memo を残しておく。


# adduser postgres -d /usr/local/pgsql
# vi /home/postgresql/.bash_profile
# tar xfzv postgresql-7.4.9.tar.gz -C /usr/local/src
# chown -R postgres:postgres /usr/local/src/postgresql-7.4.9
# cd /usr/local/src/postgresql-7.4.9
# su - postgres
$ cd /usr/local/src/postgresql-7.4.9
$ ./configure \
$ --prefix=/usr/local/pgsql \
--with-perl \
--mandir=/usr/local/man \
--enable-syslog \
--enable-multibyte=EUC_JP \
--with-openssl=/usr/lib \
--with-includes=/usr/kerberos/include
$ gmake check
$ exit
# make install
# su - postgresql
$ initdb --encoding=EUC_JP --no-locale --pgdata=/usr/local/pgsql/data
$ vi /usr/local/pgsql/data/postgresql.conf
$ exit
# cp /usr/local/src/postgres-7.4.9/contrib/start-scripts/linux /etc/rc.d/init.d/pgsql
# chmod
# chkconfig --add pgsql