CentOS 6にpostgresql9.3をインストールする手順

1.postgresql93のrpmライブラリをインストール

wget http://yum.postgresql.org/9.3/redhat/rhel-6-x86_64/pgdg-redhat93-9.3-1.noarch.rpm

2.rpmでインストール
rpm -ivh pgdg-redhat93-9.3-1.noarch.rpm

3.yum install postgresql93-server postgresql93-contrib
3.1 エラーメッセージ:
Error: Package: postgresql93-contrib-9.3.5-1PGDG.rhel6.i686 (pgdg93) Requires: libcrypto.so.10(libcrypto.so.10)

3.2 解決対策
openssl10-libs-1.0.1e-1.ius.el6.i686.rpmをダウンロードする
rpm –force -ivh openssl10-libs-1.0.1e-1.ius.el6.i686.rpm
4.yum install postgresql93-server postgresql93-contrib
 4.1 エラーメッセージ:
uuid-1.6.1-10.el6.i686: failure: Packages/uuid-1.6.1-10.el6.i686.rpm from rhel-source-beta: [Errno 256] No more mirrors to try.

4.2 解決対策:
uuid-1.6.1-10.el6.i686.rpmをダウンロードする
rpm -ivh uuid-1.6.1-10.el6.i686.rpm

5.yum install postgresql93-server postgresql93-contrib

6.service postgresql-9.3 initdb
chkconfig postgresql-9.3 on

Linux

Posted by arkgame