01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
% tar zxvf ~/src/postgresql-8.2.5.tar.gz
% cd postgresql-8.2.5
% ./configure
% make
% make check
% sudo make install
% sudo cp contrib/start-scripts/linux /etc/init.d/postgresql
% sudo chmod a+x /etc/init.d/postgresql
% sudo chkconfig --add postgresql
% sudo vi /etc/csh.cshrc
--- /etc/csh.cshrc.bak 2007-02-03 08:42:44.000000000 +0900
+++ /etc/csh.cshrc 2007-10-19 21:49:08.039127408 +0900
@@ -2,7 +2,7 @@
# System wide environment and startup programs for csh users
-setenv PATH "${HOME}/bin:/usr/local/teTeX/bin:/usr/local/ant/bin:/usr/local/sbin:/usr/local/lib/R/bin:/usr/local/bin:/usr/java/bin:${PATH}:/usr/X11R6/bin:/sbin:/usr/sbin"
+setenv PATH "${HOME}/bin:/usr/local/teTeX/bin:/usr/local/ant/bin:/usr/local/sbin:/usr/local/lib/R/bin:/usr/local/bin:/usr/local/pgsql/bin:/usr/java/bin:${PATH}:/usr/X11R6/bin:/sbin:/usr/sbin"
# Load system default language.
if (-f /etc/sysconfig/lang) then
% sudo useradd postgres
% sudo mkdir /usr/local/pgsql/data/
% sudo chown postgres:postgres /usr/local/pgsql/data/
% sudo -u postgres initdb -D /usr/local/pgsql/data
% sudo gem install postgres-pr