前提・実現したいこと
CentOS7にphp5.4のphp-mysqlモジュールをインストールしたいです。
# yum remove mariadb-libs
でmariadbを削除した後、PHP5.4とMySQL5.5をインストールしています。
# php -v PHP 5.4.45 (cli) (built: Mar 1 2018 09:57:11) Copyright (c) 1997-2014 The PHP Group Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
# mysql mysql -u root -p -D mysql mysql> select version(); +-----------+ | version() | +-----------+ | 5.5.59 | +-----------+ 1 row in set (0.01 sec)
php-mysqlをインストール中に以下のエラーメッセージが発生しました。
発生している問題・エラーメッセージ
# yum --enablerepo=remi install php-mysql 読み込んだプラグイン:fastestmirror, langpacks Repository google-chrome is listed more than once in the configuration Loading mirror speeds from cached hostfile * base: ftp.nara.wide.ad.jp * epel: mirrors.tongji.edu.cn * extras: ftp.nara.wide.ad.jp * remi: mirrors.tuna.tsinghua.edu.cn * remi-safe: mirrors.tuna.tsinghua.edu.cn * updates: ftp.nara.wide.ad.jp 依存性の解決をしています --> トランザクションの確認を実行しています。 ---> パッケージ php-mysql.x86_64 0:5.4.45-14.el7.remi を インストール --> 依存性の処理をしています: libmysqlclient.so.18(libmysqlclient_18)(64bit) のパッケージ: php-mysql-5.4.45-14.el7.remi.x86_64 パッケージ 1:mariadb-libs-5.5.56-2.el7.x86_64 は既にインストール済みの mysql-community-libs-5.5.59-2.el6.x86_64 によって不要扱いになりました。 --> 依存性解決を終了しました。 エラー: パッケージ: php-mysql-5.4.45-14.el7.remi.x86_64 (remi) 要求: libmysqlclient.so.18(libmysqlclient_18)(64bit) 利用可能: 1:mariadb-libs-5.5.56-2.el7.x86_64 (base) libmysqlclient.so.18(libmysqlclient_18)(64bit) 問題を回避するために --skip-broken を用いることができます。 これらを試行できます: rpm -Va --nofiles --nodigest
該当のソースコード
ソースコード
試したこと
libmysqlclient.so.18の所在確認
# ll /usr/lib64/mysql/libmysqlclient.so.18 lrwxrwxrwx 1 root root 24 3月 13 18:06 /usr/lib64/mysql/libmysqlclient.so.18 -> libmysqlclient.so.18.0.0
mysql-community-libs-compatのインストール
# yum install mysql-community-libs-compat
エラー内容に変化はありませんでした。
# yum --enablerepo=remi install php-mysql --skip-broken 読み込んだプラグイン:fastestmirror, langpacks Repository google-chrome is listed more than once in the configuration Loading mirror speeds from cached hostfile * base: ftp.nara.wide.ad.jp * epel: ftp.iij.ad.jp * extras: ftp.nara.wide.ad.jp * remi: mirror.bebout.net * remi-safe: mirror.bebout.net * updates: ftp.nara.wide.ad.jp 依存性の解決をしています --> トランザクションの確認を実行しています。 ---> パッケージ php-mysql.x86_64 0:5.4.45-14.el7.remi を インストール --> 依存性の処理をしています: libmysqlclient.so.18(libmysqlclient_18)(64bit) のパッケージ: php-mysql-5.4.45-14.el7.remi.x86_64 パッケージ 1:mariadb-libs-5.5.56-2.el7.x86_64 は既にインストール済みの mysql-community-libs-5.5.59-2.el6.x86_64 によって不要扱いになりました。 パッケージは依存関係に問題があるため、飛ばします: php-mysql-5.4.45-14.el7.remi.x86_64 (remi から)
インストールされませんでした。
# yum repolist 読み込んだプラグイン:fastestmirror, langpacks Repository google-chrome is listed more than once in the configuration Loading mirror speeds from cached hostfile * base: ftp.nara.wide.ad.jp * epel: ftp.iij.ad.jp * extras: ftp.nara.wide.ad.jp * remi-safe: mirror.bebout.net * updates: ftp.nara.wide.ad.jp リポジトリー ID リポジトリー名 状態 base/7/x86_64 CentOS-7 - Base 9,591 epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 12,400 extras/7/x86_64 CentOS-7 - Extras 435 google-chrome google-chrome 3 mysql-connectors-community/x86_64 MySQL Connectors Community 45 mysql-tools-community/x86_64 MySQL Tools Community 57 mysql55-community/x86_64 MySQL 5.5 Community Server 430 remi-safe Safe Remi's RPM repository for Enterprise Linux 7 - x86_64 2,630 updates/7/x86_64 CentOS-7 - Updates 2,404 repolist: 27,995
repolistを確認しました。
補足情報(FW/ツールのバージョンなど)
CentOSのバージョン
# cat /etc/redhat-release CentOS Linux release 7.4.1708 (Core)
EPELレポジトリ追加時のコマンド
# yum install epel-release
Remiリポジトリ追加時のコマンド
# rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm





回答2件
あなたの回答
tips
プレビュー