【问题标题】:Error: php55w-common conflicts with php-common on CentOS 6.5错误:php55w-common 与 CentOS 6.5 上的 php-common 冲突
【发布时间】:2014-07-18 03:10:47
【问题描述】:

我已经安装了带有 PHP5、Mysql5.5 等的全新 64 位 CentOS 6.5。

现在当我想安装不同的 apache 模块,比如 php-soap,我得到这个错误:

---> Package php-soap.x86_64 0:5.3.3-27.el6_5 will be installed
--> Processing Dependency: php-common(x86-64) = 5.3.3-27.el6_5 for package: php-soap-5.3.3-27.el6_5.x86_64
--> Running transaction check
---> Package php-common.x86_64 0:5.3.3-27.el6_5 will be installed
--> Processing Conflict: php55w-common-5.5.12-1.w6.x86_64 conflicts php-common < 5.5.0
--> Finished Dependency Resolution
Error: php55w-common conflicts with php-common-5.3.3-27.el6_5.x86_64
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

我使用这个命令安装php-soap:

yum --enablerepo=webtatic 安装 php-soap

【问题讨论】:

    标签: php soap conflict centos6


    【解决方案1】:

    我刚刚找到了我的问题的解决方案!

    使用以下命令安装php-soap:

    yum install php55w-soap
    

    希望这会有所帮助!

    【讨论】:

    • 我安装的是 XML 模块,而不是 SOAP,而是将命令更改为 yum install php55w-xml 很管用。谢谢!
    • 对我来说——sudo yum install php55-soap(删除w,并确保以sudo(root)身份运行
    • 我在 2017 年 1 月运行 centos 6.8 PHP 7,这对我有用:yum install php70w-soap from webtatic.com/packages/php70
    • 太好了,谢谢。为我工作 使用 php55w-mbstring 安装 php-mbstring 检查它是否正在安装: php -m |grep mbstring 检查它是否已加载: php -r 'php -r 'echo extension_loaded("mbstring") ? 1:2; ' 重启 httpd 服务 谢谢
    【解决方案2】:

    我已经在我的 Centos 上安装了 postfix 和 dovecot。我正在使用需要 php-imap 模块的 Interspire 电子邮件营销商 (IEM)。我安装了 squirrelmail 并且可以使用 squirrelmail 界面发送和接收邮件。但是使用 IEM 我总是收到 imap 模块未安装的错误,所以我尝试了以下并得到了以下错误。我完全困惑我应该做什么。我想如果squirrelmail可以阅读邮件,IEM应该也可以阅读。如果我必须再次安装 php-imap,如何处理以下所有错误。

    yum install php-imap 
    Loaded plugins: fastestmirror
    Setting up Install Process
    Loading mirror speeds from cached hostfile
    epel/metalink                                                                                                                                                           | 4.4 kB     00:00     
     * base: centos.webwerks.com
     * epel: mirror.premi.st
     * extras: centos.webwerks.com
     * updates: centos.webwerks.com
     * webtatic: sp.repo.webtatic.com
    base                                                                                                                                                                    | 3.7 kB     00:00     
    extras                                                                                                                                                                  | 3.4 kB     00:00     
    updates                                                                                                                                                                 | 3.4 kB     00:00     
    webtatic                                                                                                                                                                | 3.6 kB     00:00     
    Resolving Dependencies
    --> Running transaction check
    ---> Package php-imap.x86_64 0:5.3.3-48.el6_8 will be installed
    --> Processing Dependency: php-common(x86-64) = 5.3.3-48.el6_8 for package: php-imap-5.3.3-48.el6_8.x86_64
    --> Running transaction check
    ---> Package php-common.x86_64 0:5.3.3-48.el6_8 will be installed
    --> Processing Conflict: php55w-common-5.5.38-1.w6.x86_64 conflicts php-common < 5.5
    --> Finished Dependency Resolution
    Error: php55w-common conflicts with php-common-5.3.3-48.el6_8.x86_64
     You could try using --skip-broken to work around the problem
     You could try running: rpm -Va --nofiles --nodigest
    

    【讨论】:

      【解决方案3】:

      我使用以下命令来解决同样的问题: yum remove php* yum install php55w-soap

      【讨论】:

        【解决方案4】:

        yum -y install php55w php55w-fpm php55w-soap php55w-opcache php55w-xml php55w-mcrypt php55w-gd php55w-devel php55w-mysql php55w-intl php55w-mbstring php55w-bcmath

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 1970-01-01
          • 2018-08-21
          • 2013-03-31
          • 1970-01-01
          • 2017-07-20
          • 1970-01-01
          • 1970-01-01
          相关资源
          最近更新 更多