我的服务器上安装了 Centos 5.10,并尝试运行以下命令
yum install php53u-pecl-memcached.x86_64
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php53u-pecl-memcached.x86_64 0:1.0.0-3.ius.centos5 set to be updated
--> Processing Dependency: php53u-zend-abi = 20090626 for package: php53u-pecl-memcached
--> Processing Dependency: libmemcached.so.2(libmemcached_2)(64bit) for package: php53u-pecl-memcached
--> Processing Dependency: libmemcached.so.2()(64bit) for package: php53u-pecl-memcached
--> Running transaction check
---> Package php53u-common.x86_64 0:5.3.28-1.ius.centos5 set to be updated
---> Package php53u-pecl-memcached.x86_64 0:1.0.0-3.ius.centos5 set to be updated
--> Processing Dependency: libmemcached.so.2(libmemcached_2)(64bit) for package: php53u-pecl-memcached
--> Processing Dependency: libmemcached.so.2()(64bit) for package: php53u-pecl-memcached
--> Processing Conflict: php53-common conflicts php-common
--> Finished Dependency Resolution
php53-common-5.3.3-22.el5_10.x86_64 from installed has depsolving problems
--> php53-common conflicts with php53u-common
php53u-pecl-memcached-1.0.0-3.ius.centos5.x86_64 from ius has depsolving problems
--> Missing Dependency: libmemcached.so.2()(64bit) is needed by package php53u-pecl-memcached-1.0.0-3.ius.centos5.x86_64 (ius)
php53u-pecl-memcached-1.0.0-3.ius.centos5.x86_64 from ius has depsolving problems
--> Missing Dependency: libmemcached.so.2(libmemcached_2)(64bit) is needed by package php53u-pecl-memcached-1.0.0-3.ius.centos5.x86_64 (ius)
Error: php53-common conflicts with php53u-common
Error: Missing Dependency: libmemcached.so.2(libmemcached_2)(64bit) is needed by package php53u-pecl-memcached-1.0.0-3.ius.centos5.x86_64 (ius)
Error: Missing Dependency: libmemcached.so.2()(64bit) is needed by package php53u-pecl-memcached-1.0.0-3.ius.centos5.x86_64 (ius)
因此我收到一些有关 php 冲突和缺少依赖项的错误。
php53-common conflicts php-common
php53-common conflicts with php53u-common
尝试删除软件包
yum remove php-common
yum remove php53-common
两个命令都会导致
Package(s) php-common available, but not installed.
Package(s) php53u-common available, but not installed.
No Packages marked for removal
如果未安装该软件包,怎么会发生冲突?我可以删除 php53-common,但这也会删除依赖项,这是一个 pleks 安装,我不想删除它。
我现在能做的最好的事是什么?
答案1
也许是从源代码手动安装或者使用 rpm 安装?
例如,尝试以下操作..
rpm -qa php-common
rpm -qa php53-common
然后尝试通过下列操作删除...
sudo rpm -e `rpm -qa | grep -i php-common `
sudo rpm -e `rpm -qa | grep -i php53-common `
如果它是由于某些疯狂的原因从源代码安装的,那么你可能会遇到一场战斗!
祝你好运 :)
答案2
libmemcached.so.2
由提供libmemcached
参见以下内容
[mike@mem01-east ~]$ rpm -qf /usr/lib64/libmemcached.so.2
libmemcached-0.31-1.1.el6.x86_64