【问题标题】:yum install php-idn not working on centos 6.6yum install php-idn 在 centos 6.6 上不起作用
【发布时间】:2023-03-13 16:26:01
【问题描述】:

尝试安装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

【问题讨论】:

    标签: php centos6 php-extension


    【解决方案1】:

    卸载 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 优先级或protectbase 一起使用。见:http://wiki.centos.org/PackageManagement/Yum/ProtectBase

    【讨论】:

      猜你喜欢
      • 2016-06-10
      • 2015-03-14
      • 2017-02-05
      • 2016-10-11
      • 2016-11-10
      • 2018-09-16
      • 1970-01-01
      • 2014-11-10
      • 1970-01-01
      相关资源
      最近更新 更多