Cenros 6.3 安装 php-imap 跨 repo 失败

Cenros 6.3 安装 php-imap 跨 repo 失败

我正在尝试在 Centos 6.3 上安装 php-imap 支持

yum install php-imap

由于 repos 的 php 版本不同,安装失败:

Resolving Dependencies
--> Running transaction check
---> Package php-imap.x86_64 0:5.3.3-14.el6_3 will be installed
--> Processing Dependency: php-common = 5.3.3-14.el6_3 for package: php-imap-5.3.3-14.el6_3.x86_64
--> Processing Dependency: libc-client.so.2007()(64bit) for package: php-imap-5.3.3-14.el6_3.x86_64
--> Running transaction check
---> Package libc-client.x86_64 0:2007e-11.el6 will be installed
---> Package php-imap.x86_64 0:5.3.3-14.el6_3 will be installed
--> Processing Dependency: php-common = 5.3.3-14.el6_3 for package: php-imap-5.3.3-14.el6_3.x86_64
--> Finished Dependency Resolution
Error: Package: php-imap-5.3.3-14.el6_3.x86_64 (updates)
           Requires: php-common = 5.3.3-14.el6_3
           Installed: php-common-5.3.18-1.el6.remi.x86_64 (@remi)
               php-common = 5.3.18-1.el6.remi
           Available: php-common-5.3.3-3.el6_2.8.x86_64 (base)
               php-common = 5.3.3-3.el6_2.8
           Available: php-common-5.3.3-14.el6_3.x86_64 (updates)
               php-common = 5.3.3-14.el6_3
 You could try using --skip-broken to work around the problem

尝试使用 --skip-broken 键安装它会产生以下结果:

Packages skipped because of dependency problems:
    libc-client-2007e-11.el6.x86_64 from base
    php-imap-5.3.3-14.el6_3.x86_64 from updates

我的问题是:我如何才能直接从 remi repo 安装它而不检查任何版本。提前谢谢您!

答案1

您需要启用 remi 存储库才能从中安装匹配的软件包。我假设您之前已经通过某种方式启用了它,以便首先获取其版本的 PHP。

编辑/etc/yum.repos.d/remi.repo并确保已enabled=1在该部分中设置[remi]

(如果不存在,请确保您remi-release先安装了 RPM。)

相关内容