質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.50%
PostgreSQL

PostgreSQLはオープンソースのオブジェクトリレーショナルデータベース管理システムです。 Oracle Databaseで使われるPL/SQLを参考に実装されたビルトイン言語で、Windows、 Mac、Linux、UNIX、MSなどいくつものプラットフォームに対応しています。

Q&A

解決済

1回答

4378閲覧

PostgreSQLがインストールできません。

antiwararug

総合スコア35

PostgreSQL

PostgreSQLはオープンソースのオブジェクトリレーショナルデータベース管理システムです。 Oracle Databaseで使われるPL/SQLを参考に実装されたビルトイン言語で、Windows、 Mac、Linux、UNIX、MSなどいくつものプラットフォームに対応しています。

0グッド

0クリップ

投稿2020/08/21 05:41

編集2020/08/21 06:26

こちらの記事を参考に、postgresqlのインストールを進めています。
リンク先の説明

PostgreSQLのリポジトリパッケージのインストールを試みております。
CentOS6なので以下のコマンドを実行しました。

# yum -y install https://download.postgresql.org/pub/repos/yum/reporpms/EL-6-x86_64/pgdg-redhat-repo-latest.noarch.rpm // 結果 Loaded plugins: fastestmirror Setting up Install Process pgdg-redhat-repo-latest.noarch.rpm | 6.5 kB 00:00 Examining /var/tmp/yum-root-2ae4eg/pgdg-redhat-repo-latest.noarch.rpm: pgdg-redhat-repo-42.0-11.noarch /var/tmp/yum-root-2ae4eg/pgdg-redhat-repo-latest.noarch.rpm: does not update installed package. Error: Nothing to do

yumが通らないので、次に以下のコマンドを実行しました。

# rpm -iUvh https://download.postgresql.org/pub/repos/yum/reporpms/EL-6-x86_64/pgdg-redhat-repo-latest.noarch.rpm // 結果 Retrieving https://download.postgresql.org/pub/repos/yum/reporpms/EL-6-x86_64/pgdg-redhat-repo-latest.noarch.rpm warning: /var/tmp/rpm-tmp.ybdYfU: Header V4 DSA/SHA1 Signature, key ID 442df0f8: NOKEY Preparing... ########################################### [100%] package pgdg-redhat-repo-42.0-11.noarch is already installed

パッケージインストールは出来たようなので、postgresqlのインストールを試しました。

# yum -y install postgresql11-server postgresql11-contrib // 結果 Loaded plugins: fastestmirror Setting up Install Process // 省略 No package postgresql11-server available. No package postgresql11-contrib available. Error: Nothing to do

上記のようにエラーとなります。
知識が乏しいので、参考記事の手順通りにやるしかないのですが、
どのような原因でこのようなエラーとなっているのか、教えていただけますでしょうか。

前提情報が欠けている場合、お手数ですがご指摘いただけますでしょうか。
よろしくお願いいたします。

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

antiwararug

2020/08/21 06:30

修正いたしました。ご指摘ありがとうございます。
guest

回答1

0

ベストアンサー

PostgreSQL: Linux downloads (Red Hat family)

で、11とCentOS6とx86_64を選ぶと、

yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-6-x86_64/pgdg-redhat-repo-latest.noarch.rpm
yum install -y postgresql11-server
service postgresql-11 initdb
chkconfig postgresql-11 on
service postgresql-11 start

ってなりますが、これだといかがでしょうか。

投稿2020/08/21 06:18

退会済みユーザー

退会済みユーザー

総合スコア0

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

antiwararug

2020/08/21 06:30

ご回答いただきありがとうございます。 以下のようなエラーとなりました。 ネットワーク側の問題でしょうか? # yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-6-x86_64/pgdg-redhat-repo-latest.noarch.rpm Loaded plugins: fastestmirror Setting up Install Process pgdg-redhat-repo-latest.noarch.rpm | 6.5 kB 00:00 Examining /var/tmp/yum-root-2ae4eg/pgdg-redhat-repo-latest.noarch.rpm: pgdg-redhat-repo-42.0-11.noarch /var/tmp/yum-root-2ae4eg/pgdg-redhat-repo-latest.noarch.rpm: does not update installed package. Error: Nothing to do
退会済みユーザー

退会済みユーザー

2020/08/21 06:34

ネットワーク側の問題、ということは、ネットに接続できているかどうかの確認はしていますか? CentOS6でeth0にアドレスを設定する(CLI) - Qiita https://qiita.com/tamamius/items/3af63f66ca81b165c319 など参考になるでしょうか。
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.50%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問