LoginSignup
0
0

More than 5 years have passed since last update.

【yum】yumリポジトリにremiを追加【remi】

Posted at

phpのバージョンを5.6から7にアップしたところ、既存サイトがpdoドライバがなくてコケてたのでインストールをこころみるも依存エラーが(´゚д゚`)

yum install php-pdo_pgsql
# yum install php-pdo_pgsql
読み込んだプラグイン:fastestmirror, security
インストール処理の設定をしています
Loading mirror speeds from cached hostfile
 * base: ftp.iij.ad.jp
 * epel: ftp.yz.yamagata-u.ac.jp
 * extras: ftp.iij.ad.jp
 * updates: ftp.iij.ad.jp
依存性の解決をしています
--> トランザクションの確認を実行しています。
---> Package php-pgsql.x86_64 0:5.3.3-49.el6 will be インストール
--> 依存性の処理をしています: php-common(x86-64) = 5.3.3-49.el6 のパッケージ: php-pgsql-5.3.3-49.el6.x86_64
--> 依存性解決を終了しました。
エラー: パッケージ: php-pgsql-5.3.3-49.el6.x86_64 (base)
             要求: php-common(x86-64) = 5.3.3-49.el6
            インストール: php-common-7.2.5-1.el6.remi.x86_64 (@remi-php72)
                php-common(x86-64) = 7.2.5-1.el6.remi
            利用可能: php-common-5.3.3-49.el6.x86_64 (base)
                php-common(x86-64) = 5.3.3-49.el6
 問題を回避するために --skip-broken を用いることができません
 これらを試行できます: rpm -Va --nofiles --nodigest

解決

レポジトリの参照元オプションを加えて無事インストール完了\(^o^)/

yum install --enablerepo=remi-php72 php-pdo php-pgsql

スクリーンショット 2018-05-10 15.29.25.png

いつも忘れるわ…

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0