如何在 PHP-FPM 5.5.6 上安装 SOAP 扩展 - 依赖问题

lub*_*sdz 4 centos php-fpm soap

我在 CentOS 6.4 上使用 nginx 为 PHP-FPM 5.5.6(32 + 64 位)安装 SOAP 扩展时遇到问题。我已启用 REMI 存储库并成功安装了所有内容 - 除了 SOAP 扩展。

尝试安装时,我收到以下依赖项错误:

[root@local src]# yum --enablerepo=remi install php-soap
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.hexageek.com
 * epel: mirror.digmia.com
 * extras: mirror.hexageek.com
 * remi: mirror5.layerjet.com
 * updates: mirror.hexageek.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-soap.x86_64 0:5.4.22-1.el6.remi will be installed
--> Processing Dependency: php-common(x86-64) = 5.4.22-1.el6.remi for package: php-soap-5.4.22-1.el6.remi.x86_64
--> Finished Dependency Resolution
Error: Package: php-soap-5.4.22-1.el6.remi.x86_64 (remi)
           Requires: php-common(x86-64) = 5.4.22-1.el6.remi
           Installed: php-common-5.5.5-2.el6.remi.x86_64 (@remi-php55)
               php-common(x86-64) = 5.5.5-2.el6.remi
           Available: php-common-5.3.3-22.el6.x86_64 (base)
               php-common(x86-64) = 5.3.3-22.el6
           Available: php-common-5.3.3-23.el6_4.x86_64 (updates)
               php-common(x86-64) = 5.3.3-23.el6_4
           Available: php-common-5.4.21-2.el6.remi.x86_64 (remi)
               php-common(x86-64) = 5.4.21-2.el6.remi
           Available: php-common-5.4.22-1.el6.remi.x86_64 (remi)
               php-common(x86-64) = 5.4.22-1.el6.remi
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
Run Code Online (Sandbox Code Playgroud)

从 remi-test "yum --enablerepo=remi-test install php-soap" 安装显示更旧版本的 php-soap 5.3.3。

这是我到目前为止尝试过的:

1/ pear install soap .... cannot install version 0.13.0 is not preferred stable, use channel 0.13.0 ... but I was not able to do it,如何切换频道..没有明确的文档或不工作。 ..

2/

yum --enablerepo=remi install php-soap ....soap 5.4.22 的依赖问题

yum --enablerepo=remi-test install php-soap ....soap 5.3.3 的依赖问题

3/ 我从RPM 下载的包中下载 RPM并尝试 yum localinstall php-soap-5.5.6-1.fc20.remi.x86_64.rpm ... 再次依赖问题

有没有人使用 PHP-FPM 在 PHP 5.5.6 上成功安装 PHP SOAP 扩展?

我还检查了PHP,但没有任何信息,只是“使用 --enable-soap 配置 PHP ”,这听起来像是 SOAP 扩展已经捆绑到核心中..?我真的非常需要这个扩展,我不想降级 PHP 版本。

非常感谢任何好的建议:-)

eta*_*klo 10

再次仔细阅读输出:

Installed: php-common-5.5.5-2.el6.remi.x86_64 (@remi-php55)
Run Code Online (Sandbox Code Playgroud)

使用

yum --enablerepo=remi-php55 install php-soap
Run Code Online (Sandbox Code Playgroud)

应该有帮助。检查此链接

并且请不要尝试在 CentOS 上安装 Fedora 软件包。

  • 这个答案被严重低估了。它值得更多的赞成。 (3认同)