yum 安装 php-idn 不能在 centos 6.6 上运行

yum install php-idn not working on centos 6.6

正在尝试安装 php-idn,因为我正在安装 Fatal error: Call to undefined function Pdp\idn_to_ascii( 安装 php-idn 时,出现以下错误。 我在 CentOs 6.6 和 PHP 5.5

上运行
Loaded plugins: fastestmirror, presto
Setting up Install Process
Repository pgdg93 is listed more than once in the configuration
Repository pgdg93-source is listed more than once in the configuration
Loading mirror speeds from cached hostfile
 * base: mirrors.usc.edu
 * epel: mirrors.kernel.org
 * extras: mirror.tocici.com
 * rpmforge: mirror.hmc.edu
 * updates: mirror.keystealth.org
Resolving Dependencies
--> Running transaction check
---> Package php-idn.x86_64 0:1.2c-1.el6 will be installed
--> Processing Dependency: php(zend-abi) = 20090626 for package: php-idn-1.2c-1.el6.x86_64
--> Processing Dependency: php(api) = 20090626 for package: php-idn-1.2c-1.el6.x86_64
--> Finished Dependency Resolution
Error: Package: php-idn-1.2c-1.el6.x86_64 (epel)
           Requires: php(zend-abi) = 20090626
           Installed: php-common-5.5.20-2.el6.remi.x86_64 (@remi-php55)
               php(zend-abi) = 20121212-64
           Available: php-common-5.3.3-38.el6.x86_64 (base)
               php(zend-abi) = 20090626
           Available: php-common-5.3.3-40.el6_6.x86_64 (updates)
               php(zend-abi) = 20090626
Error: Package: php-idn-1.2c-1.el6.x86_64 (epel)
           Requires: php(api) = 20090626
           Installed: php-common-5.5.20-2.el6.remi.x86_64 (@remi-php55)
               php(api) = 20121113-64
           Available: php-common-5.3.3-38.el6.x86_64 (base)
               php(api) = 20090626
           Available: php-common-5.3.3-40.el6_6.x86_64 (updates)
               php(api) = 20090626
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

还尝试使用

安装它
rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/php-idn-1.2c-1.el6.x86_64.rpm

卸载 epel 并执行 yum clean all 然后重新安装最新的 epel 和您的软件包。

wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -ivh epel-release-6-8.noarch.rpm

epel和rpmforge也可能有冲突。它们都可以与 yum priorities 或 protectbase 一起使用。参见:http://wiki.centos.org/PackageManagement/Yum/ProtectBase