尝试安装php-soap时出错


Error when trying to install php soap

当我尝试通过以下命令安装soap时出错:

yum install php-soap

错误为:

Error: Package: php-soap-5.3.3-46.el6_7.1.x86_64 (updates)
       Requires: php-common(x86-64) = 5.3.3-46.el6_7.1
       Installed: php-common-5.4.26-1.el6.remi.x86_64 (@remi)
           php-common(x86-64) = 5.4.26-1.el6.remi
       Available: php-common-5.3.3-40.el6_6.x86_64 (base)
           php-common(x86-64) = 5.3.3-40.el6_6
       Available: php-common-5.3.3-46.el6_6.x86_64 (updates)
           php-common(x86-64) = 5.3.3-46.el6_6
       Available: php-common-5.3.3-46.el6_7.1.x86_64 (updates)
           php-common(x86-64) = 5.3.3-46.el6_7.1

php common是从remi安装的,默认情况下未启用,因此您需要启用它来查找其他扩展

yum --enablerepo=remi install php-soap

虽然PHP 5.4仍然可用,但它是EOL(上游未维护),所以我建议使用5.5或5.6。

请参阅配置向导

您已经安装了PHP 5.4。当5.4达到EOL时,雷米将其从回购中剔除。

PHP 5.4版本已经到了生命的尽头,不再由项目维护。考虑到我的存储库用户的下载次数非常重要,该版本仍然可以在企业Linux的remi存储库中使用(RHEL,CentOS…),并包括安全修复程序(从版本5.5.31开始)。强烈建议升级到维护版本。(应很快提供一个新版本的安全修复程序,从5.5.32)

由于回购不再有5.4,它正试图从基本回购中安装5.3。您需要升级到5.5或更高版本才能获得所需的库。