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 优先级或保护基础一起使用。请参阅: http://wiki.centos.org/PackageManagement/Yum/ProtectBase