我正在尝试使用composer安装一个软件包。它在下面的错误消息中失败。
Problem 1
- zendframework/zend-soap 2.7.0 requires ext-soap * -> the requested PHP extension soap is missing from your system.
- zendframework/zend-soap 2.7.0 requires ext-soap * -> the requested PHP extension soap is missing from your system.
- zendframework/zend-soap 2.7.0 requires ext-soap * -> the requested PHP extension soap is missing from your system.
- Installation request for zendframework/zend-soap 2.7.0 -> satisfiable by zendframework/zend-soap[2.7.0].sudo yum安装php-zendframework-zend-soap
这是我正在运行的安装zend的命令。但是,这将结束下面的错误消息。
--> Running transaction check
---> Package php-container-interop.noarch 0:1.2.0-3.el7 will be installed
---> Package php-psr-http-message.noarch 0:1.0.1-1.el7.remi will be installed
---> Package php-soap.x86_64 0:5.6.40-14.el7.remi will be installed
--> Processing Dependency: php-common(x86-64) = 5.6.40-14.el7.remi for package: php-soap-5.6.40-14.el7.remi.x86_64
---> Package php-zendframework-zend-eventmanager.noarch 0:2.6.3-1.el7.remi will be installed
--> Finished Dependency Resolution
Error: Package: php-soap-5.6.40-14.el7.remi.x86_64 (remi-php56)
Requires: php-common(x86-64) = 5.6.40-14.el7.remi
Installed: php-common-7.2.20-1.el7.remi.x86_64 (@remi-php72)
php-common(x86-64) = 7.2.20-1.el7.remi
Available: php-common-5.4.16-48.el7.x86_64 (base)
php-common(x86-64) = 5.4.16-48.el7
Available: php-common-5.4.45-18.el7.remi.x86_64 (remi)
php-common(x86-64) = 5.4.45-18.el7.remi
Available: php-common-5.6.40-13.el7.remi.x86_64 (remi-php56)
php-common(x86-64) = 5.6.40-13.el7.remi
Available: php-common-5.6.40-14.el7.remi.x86_64 (remi-php56)
php-common(x86-64) = 5.6.40-14.el7.remi
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest我试过它不会安装丢失的zend。它被跳过了。我提出了第二个建议,但什么也没发生。有没有人知道如何将这个安装在CentOS 7上。
发布于 2020-05-10 05:49:56
Installed: php-common-7.2.20-1.el7.remi.x86\_64 (@remi-php72)
由于您已经从“remi 72”存储库中安装了PHP7.2,因此必须启用此存储库,以确保找到额外的扩展。
这还将确保您从错误修复和安全更新中获益(最新版本为7.2时30分)
正如巫师所解释的那样。
yum-config-manager --enable remi-php72您还可以禁用不需要的存储库。
yum-config-manager --disable remi-php56然后
yum install php-soaphttps://serverfault.com/questions/1016374
复制相似问题