【问题标题】:CentOS install php-mbstring errorCentOS 安装 php-mbstring 错误
【发布时间】:2017-01-18 19:05:23
【问题描述】:

我正在尝试使用 PHP 版本 7 在 CentOS 6.7 上安装 mbstring:

yum --enablerepo=remi install php-mbstring

,但我收到此错误:

php70w-common 与 php-common-5.4.45-11.el6.remi.x86_64 冲突

CentOS 使用的是默认的 PHP 版本 5.3(我认为),但在一周前我将它更新到 PHP 7,现在,当我想安装 mbstring 时,我看到了这个错误。 我该如何解决这个问题?

【问题讨论】:

    标签: php linux centos6 mbstring web-administration


    【解决方案1】:

    这不是一个 remi 包。他的包看起来像php-common,而不是php70w-common。您需要编辑 /etc/yum.repos.d/remi.repo 并为他的网站启用 PHP 7 存储库。

    完成此操作后,确定哪个 repo 正在为您提供 php70w 文件并排除它们。

    【讨论】:

    • 我只是重新安装 PHP,然后安装 mbstring,如果这对 some1 有帮助的话。
    【解决方案2】:

    PHP 7 的 php-mbstring 不在“remi”存储库中,但在“remi-php70”存储库中,请参阅Configuration Wizard

    【讨论】:

      猜你喜欢
      • 2012-05-03
      • 2015-04-28
      • 2016-05-03
      • 2019-06-04
      • 2015-04-05
      • 2017-08-09
      • 2019-01-06
      相关资源
      最近更新 更多