我正尝试在Centos 6.3上安装php-imap支持
yum install php-imap
由于回购安装失败有不同的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仓库安装而不检查任何版本。 先谢谢你!
您需要启用remi存储库才能从中安装匹配的软件包。 我想你以前曾经用过某种方法来启用它,以便首先获得它的PHP版本。
编辑/etc/yum.repos.d/remi.repo并确保在[remi]部分设置了enabled=1 。
(如果不存在,请确保先安装了remi-release RPM。)