php-pecl-memcachedのアップデートに失敗
いつものようにyum check-updateを実行。php-pecl-memcachedがアップデート対象ですよってことなので、yum updateを実行。ところが以下のようなエラー。
--> トランザクションの確認を実行しています。 ---> パッケージ php-pecl-memcached.x86_64 0:3.0.4-2.el7.remi.7.1 を 更新 ---> パッケージ php-pecl-memcached.x86_64 0:3.0.4-8.el7.remi.7.1 を アッ プデート --> 依存性の処理をしています: libmemcached-opt-libs(x86-64) のパッケージ: php-pecl-memcached-3.0.4-8.el7.remi.7.1.x86_64 --> 依存性解決を終了しました。 エラー: パッケージ: php-pecl-memcached-3.0.4-8.el7.remi.7.1.x86_64 (remi-php71) 要求: libmemcached-opt-libs(x86-64) ********************************************************************** yum can be configured to try to resolve such errors by temporarily enabling disabled repos and searching for missing dependencies. To enable this functionality please set 'notify_only=0' in /etc/yum/pluginconf.d/search-disabled-repos.conf ********************************************************************** エラー: パッケージ: php-pecl-memcached-3.0.4-8.el7.remi.7.1.x86_64 (remi-php71) 要求: libmemcached-opt-libs(x86-64) 問題を回避するために --skip-broken を用いることができます。 これらを試行できます: rpm -Va --nofiles --nodigest
libmemcached-opt-libsがないぞってことみたい。
installのときはなにも言われなかったんだけどなぁ。
そのままyum install libmemcached-opt-libsとしてもそんなパッケージ無いぞって言われる。
調べてみたところ、libmemcached-opt-libsはmemcached-devに入っているようで、そのパッケージはremiのリポジトリに入っている。
remiはphpの最新版を配布しているリポジトリですが、remi-php72とかremi-php71とかは有効になっているけど、remiそのものはenabel=0で無効になっている。
以下のようにして、
[remi] name=Remi's RPM repository for Enterprise Linux 7 - $basearch #baseurl=http://rpms.remirepo.net/enterprise/7/remi/$basearch/ #mirrorlist=https://rpms.remirepo.net/enterprise/7/remi/httpsmirror mirrorlist=http://rpms.remirepo.net/enterprise/7/remi/mirror enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
でもって、update。