1

我尝试为 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.
4

1 回答 1

0

您需要先手动安装/更新 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
于 2012-11-08T07:02:12.680 回答