CentOS 上 Postgresql 安装

■ 必要なツールの準備とインストール

① GNU makeの確認

[root@censtos5 gcc]# gmake --version
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
これはフリーソフトウェアです. 利用許諾についてはソースを
ご覧ください.
商業性や特定の目的への適合性の如何に関わらず, 無保証です.

This program built for i686-redhat-linux-gnu
[root@censtos5 gcc]#


② ISO/ANSI Cコンパイル(使用GCC)
→確認
[root@censtos5 gcc]# gcc --version
-bash: gcc: command not found
[root@censtos5 gcc]#

→Gcc安装
-rw-r--r--  1 root root  5449366  7月  6 20:56 gcc-4.1.2-52.el5.i386.rpm
-rw-r--r--  1 root root  2148054  7月  6 20:57 glibc-devel-2.5-81.i386.rpm
-rw-r--r--  1 root root   620228  7月  6 20:58 glibc-headers-2.5-81.i386.rpm
-rw-r--r--  1 root root  1395247  7月  6 20:58 kernel-headers-2.6.18-308.el5.i386.rpm
-rw-r--r--  1 root root  3544387  7月  6 21:01 gcc-c++-4.1.2-52.el5.i386.rpm
-rw-r--r--  1 root root  2963572  7月  6 21:02 libstdc++-devel-4.1.2-52.el5.i386.rpm
[root@censtos5 gcc]#

上面安装包从安装盘里找到。安装
安装命令是:rpm -ivh *.rpm

→再确认安装是否成功
[root@censtos5 gcc]# gcc --version
gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-52)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


■ 共有メモリの設定


■ アカウントの作成


■ PostgresSQLのインストール

猜你喜欢

转载自jiahesoft.iteye.com/blog/1900611