![如何在 centos 6.4 x86_64 中使用 rpm 包安装 php soap](https://linux22.com/image/1383501/%E5%A6%82%E4%BD%95%E5%9C%A8%20centos%206.4%20x86_64%20%E4%B8%AD%E4%BD%BF%E7%94%A8%20rpm%20%E5%8C%85%E5%AE%89%E8%A3%85%20php%20soap.png)
我想安装 php-soap,centos 说:
[root@LMS-Cent64 soap]# rpm -ivh php-soap-5.3.3-22.el6.x86_64.rpm error: Failed dependencies:
php-common(x86-64) = 5.3.3-22.el6 is needed by php-soap-5.3.3-22.el6.x86_64
安装 php-common(x86-64) 后:
[root@LMS-Cent64 soap]# rpm -ivh php-common-5.3.3-22.el6.x86_64.rpm Preparing...
########################################### [100%]
package php-common-5.3.3-23.el6_4.x86_64 (which is newer than php-common-5.3.3-22.el6.x86_64) is already installed
file /usr/lib64/php/modules/phar.so from install of php-common-5.3.3-22.el6.x86_64 conflicts with file from package php-common-5.3.3-23.el6_4.x86_64
现在做什么?
答案1
如果可能的话,使用 yum 更新所有软件包,然后使用 yum 安装 php-soap。
如果您必须从 rpm 安装,请安装 CentOS repo 中的 php-soap-5.3.3-23.el6_4.x86_64。不过,应该让 yum 或图形包管理器为您处理所有这些。