当我尝试运行 yum update 时,它说 libmemcached-opt-libs 需要 libevent2,但我找不到如何安装 libevent2。当我尝试 yum install libevent2 时,我收到 No package libevent2 available 消息。
有人在 libmemcache 更新方面遇到过类似的问题吗?
[root@XXXX ec2-user]# yum update
Loaded plugins: priorities, update-motd, upgrade-helper
1404 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package php72-php-pecl-memcached.x86_64 0:3.0.4-1.el6.remi will be updated
---> Package php72-php-pecl-memcached.x86_64 0:3.1.3-1.el6.remi will be an update
--> Processing Dependency: libmemcached-opt-libs(x86-64) for package: php72-php-pecl-memcached-3.1.3-1.el6.remi.x86_64
---> Package php72-php-pecl-msgpack.x86_64 0:2.0.2-4.el6.remi will be updated
---> Package php72-php-pecl-msgpack.x86_64 0:2.0.3-1.el6.remi will be an update
--> Running transaction check
---> Package libmemcached-opt-libs.x86_64 0:1.0.18-1.el6.remi will be installed
--> Processing Dependency: libevent2(x86-64) for package: libmemcached-opt-libs-1.0.18-1.el6.remi.x86_64
--> Finished Dependency Resolution
Error: Package: libmemcached-opt-libs-1.0.18-1.el6.remi.x86_64 (remi)
Requires: libevent2(x86-64)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
答案1
此问题在 CentOS 6 上不存在,仅在亚马逊修改后的发行版,提供 libevent 版本 2,而不是 libevent 版本 1 + libevent2(版本 2)
libmemcached-opt-libs(版本 1.0.18-2)的新版本改进了依赖项处理,并修复了此问题。