缺少依赖项:php-common = 5.3.14-1.el5.remi


Missing Dependency: php-common = 5.3.14-1.el5.remi

我尝试为NGINX安装PHP-FPM,然后使用remi存储库遇到相同的错误。也许有版本与 php-common 混为一谈,我该如何修复它。

yum --enablerepo=remi install php-fpm
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
* base: centos.mirror.transip.nl
* extras: centos.mirror.transip.nl
* remi: remi-mirror.dedipower.com
* updates: centos.mirror.transip.nl
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-fpm.x86_64 0:5.3.14-1.el5.remi set to be updated
--> Processing Dependency: php-common = 5.3.14-1.el5.remi for package: php-fpm
--> Finished Dependency Resolution
php-fpm-5.3.14-1.el5.remi.x86_64 from remi has depsolving problems
  --> Missing Dependency: php-common = 5.3.14-1.el5.remi is needed by package php-fpm-5.3.14-        1.el5.remi.x86_64 (remi)
Error: Missing Dependency: php-common = 5.3.14-1.el5.remi is needed by package php-fpm-        5.3.14-1.el5.remi.x86_64 (remi)
 You could try using --skip-broken to work around the problem
 You could try running: package-cleanup --problems
                    package-cleanup --dupes
                    rpm -Va --nofiles --nodigest
    The program package-cleanup is found in the yum-utils package.

你需要先手动安装/更新 php-common。

试试这个:

  rpm -i http://rpms.famillecollet.com/enterprise/5/remi/x86_64/php-common-5.3.14-1.el5.remi.x86_64.rpm

如果遇到冲突(例如由于已安装早期版本),请使用

   rpm -i http://rpms.famillecollet.com/enterprise/5/remi/x86_64/php-common-5.3.14-1.el5.remi.x86_64.rpm --force

可以删除旧版本,而无需像这样使用它的依赖项

 rpm -e --nodeps php-common-5.3.10-1.el5.remi.x86_64