次のサイトから、ソースファイル(postgresql-8.0.3.tar.gz)をダウンロードし、 作業用ディレクトリ(今回は /work)に置く ftp://ftp.ring.gr.jp/pub/misc/db/postgresql/
[root@siva /]# less /etc/passwd | grep postgres
[root@siva /]# ueradd postgres [root@siva /]# passwd postgres [root@siva /]# id postgres uid=509(postgres) gid=509(postgres) 所属グループ=509(postgres)
[root@siva /]# mkdir usr/local/pgsql
[root@siva /]# chown postgres.postgres -R /usr/local/pgsql
[root@siva /]# cd work [root@siva work]#
[root@siva work]# tar zxf postgresql-8.0.3.tar.gz [root@siva work]# cd postgresql-8.0.3
[root@siva postgresql-8.0.3]# ./configure --enable-multibyte=EUC_JP
:
config.status: linking ./src/include/port/linux.h to src/include/pg_config_os.h
config.status: linking ./src/makefiles/Makefile.linux to src/Makefile.port
[root@siva postgresql-8.0.3]# make all
:
make[1]: Leaving directory `/work/postgresql-8.0.3/config'
All of PostgreSQL successfully made. Ready to install.
[root@siva postgresql-8.0.3]# make install
:
make[1]: Leaving directory `/work/postgresql-8.0.3/config'
PostgreSQL installation complete.
|