PostgreSQLスキルアップノート(自己啓発のための個人サイト)

PostgreSQL9.1のインストール


【一覧に戻る】


━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
■■■■ PostgreSQL スキルアップノート
■■■■
■◆■■ PostgreSQL9.1のインストール
■■■■
■■■■
■■■■ 2013/01/13
■■■■ 使用環境:PostgreSQL9.1.7 (CentOS6.2)
                                                                   (C) 2013 ohdb
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━


【マニュアル】


【ダウンロード】

※手順ではyumを使用してインストールするので直接のダウンロードは不要

PostgreSQL RPM Building Project - Yum Repository →●[ダウンロード]


【参考記事】

−



■1■ インストール
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━


1.yumリポジトリのインストール
──────────────────────────────


【□】 rpm -Uvh http://yum.postgresql.org/9.1/redhat/rhel-6-x86_64/pgdg-centos91-9.1-4.noarch.rpm

【参考】関連ページ 

  http://yum.postgresql.org/  の「Repo RPMs」より
  PostgreSQL RPM Building Project - Repository Packages 
  Available Repository RPMs  



2.postgreSQLのインストール
──────────────────────────────

ここではcontribも含めてインストールする。


【□】 yum install postgresql91 postgresql91-server postgresql91-libs postgresql91-contrib





■2■ 参考
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━


依存関連で1個インストールが追加されている。

postgreSQLドキュメントの「付録F追加で提供されるモジュール」
(http://www.postgresql.jp/document/9.1/html/uuid-ossp.html)
に記載されているcontribのuuid-ossp関数で必要(と思う)
uuidは全世界でほぼ完全なユニークなIDを生成する機能。


ちなみにrpmコマンドを直に使用する場合は
エラー: 依存性の欠如:
 libossp-uuid.so.16()(64bit) は postgresql91-contrib-9.1.7-1PGDG.rhel6.x86_64 に必要とされています
となるので、uuid-1.6.1-10.el6.x86_64.rpmも一緒に入れてやる必要がある。



[root@centos62-01 postgres]# rpm -Uvh http://yum.postgresql.org/9.1/redhat/rhel-6-x86_64/pgdg-centos91-9.1-4.noarch.rpm
http://yum.postgresql.org/9.1/redhat/rhel-6-x86_64/pgdg-centos91-9.1-4.noarch.rpm を取得中
警告: /var/tmp/rpm-tmp.fbX6Fd: ヘッダ V4 DSA/SHA1 Signature, key ID 442df0f8: NOKEY
準備中...                ########################################### [100%]
   1:pgdg-centos91          ########################################### [100%]

[root@centos62-01 postgres]# yum install postgresql91 postgresql91-server postgresql91-libs postgresql91-contrib
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
 * base: www.ftp.ne.jp
 * extras: www.ftp.ne.jp
 * updates: www.ftp.ne.jp
pgdg91                                                            | 2.8 kB     00:00
pgdg91/primary_db                                                 | 123 kB     00:01
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package postgresql91.x86_64 0:9.1.7-1PGDG.rhel6 will be installed
---> Package postgresql91-contrib.x86_64 0:9.1.7-1PGDG.rhel6 will be installed
--> Processing Dependency: libossp-uuid.so.16()(64bit) for package: postgresql91-contrib-9.1.7-1PGDG.rhel6.x86_64
---> Package postgresql91-libs.x86_64 0:9.1.7-1PGDG.rhel6 will be installed
---> Package postgresql91-server.x86_64 0:9.1.7-1PGDG.rhel6 will be installed
--> Running transaction check
---> Package uuid.x86_64 0:1.6.1-10.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================
 Package                           Arch       Version                   Repository      Size
=============================================================================================
Installing:
 postgresql91                      x86_64     9.1.7-1PGDG.rhel6         pgdg91         990 k
 postgresql91-contrib              x86_64     9.1.7-1PGDG.rhel6         pgdg91         399 k
 postgresql91-libs                 x86_64     9.1.7-1PGDG.rhel6         pgdg91         189 k
 postgresql91-server               x86_64     9.1.7-1PGDG.rhel6         pgdg91         3.6 M
Installing for dependencies:
 uuid                              x86_64     1.6.1-10.el6              base            54 k ★

Transaction Summary
=============================================================================================
Install       5 Package(s)

Total download size: 5.2 M
Installed size: 22 M
Is this ok [y/N]: y
Downloading Packages:
(1/5): postgresql91-9.1.7-1PGDG.rhel6.x86_64.rpm                       | 990 kB     00:08
(2/5): postgresql91-contrib-9.1.7-1PGDG.rhel6.x86_64.rpm               | 399 kB     00:03
(3/5): postgresql91-libs-9.1.7-1PGDG.rhel6.x86_64.rpm                  | 189 kB     00:01
(4/5): postgresql91-server-9.1.7-1PGDG.rhel6.x86_64.rpm                | 3.6 MB     00:30
(5/5): uuid-1.6.1-10.el6.x86_64.rpm                                    |  54 kB     00:00
----------------------------------------------------------------------------------------------
Total                                                         117 kB/s | 5.2 MB     00:45
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
  Installing : postgresql91-libs-9.1.7-1PGDG.rhel6.x86_64               1/5
  Installing : postgresql91-9.1.7-1PGDG.rhel6.x86_64                    2/5
  Installing : uuid-1.6.1-10.el6.x86_64                                 3/5
  Installing : postgresql91-contrib-9.1.7-1PGDG.rhel6.x86_64            4/5
  Installing : postgresql91-server-9.1.7-1PGDG.rhel6.x86_64             5/5

Installed:
  postgresql91.x86_64 0:9.1.7-1PGDG.rhel6                  
  postgresql91-contrib.x86_64 0:9.1.7-1PGDG.rhel6      
  postgresql91-libs.x86_64 0:9.1.7-1PGDG.rhel6
  postgresql91-server.x86_64 0:9.1.7-1PGDG.rhel6

Dependency Installed:
  uuid.x86_64 0:1.6.1-10.el6

Complete!
[root@centos62-01 postgres]#






                                                                                                            
以上
 
inserted by FC2 system