沃梦达 / 编程问答 / php问题 / 正文

centOS 7 无法安装 php-mbstring 扩展

centOS 7 Can#39;t install php-mbstring extension(centOS 7 无法安装 php-mbstring 扩展)

本文介绍了centOS 7 无法安装 php-mbstring 扩展的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已尝试安装扩展 mbstring,但出现以下错误:

i've tried to install the extension mbstring but i have the following error:

    Error: Package: php-mbstring-5.4.16-23.el7_0.3.x86_64 (updates)
        Requires: php-common(x86-64) = 5.4.16-23.el7_0.3
        Installed: php-common-5.4.38-1.el7.remi.x86_64 (@remi)
        php-common(x86-64) = 5.4.38-1.el7.remi
        Available: php-common-5.4.16-21.el7.x86_64 (base)
        php-common(x86-64) = 5.4.16-21.el7
        Available: php-common-5.4.16-23.el7_0.x86_64 (updates)
        php-common(x86-64) = 5.4.16-23.el7_0
        Available: php-common-5.4.16-23.el7_0.1.x86_64 (updates)
        php-common(x86-64) = 5.4.16-23.el7_0.1
        Available: php-common-5.4.16-23.el7_0.3.x86_64 (updates)
        php-common(x86-64) = 5.4.16-23.el7_0.3
    You could try using --skip-broken to work around the problem
    You could try running: rpm -Va --nofiles --nodigest

我能做些什么来解决这个问题?

What could i do to resolve the problem ?

感谢您的帮助

推荐答案

对于想知道如何解决这个问题的人:

For people who want to know how to solve this :

sudo yum remove php-common

那么你可以:

sudo yum install php-mbstring

它会自动安装依赖项(php-common)

It will automaticcaly install dependecies (php-common)

这篇关于centOS 7 无法安装 php-mbstring 扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本文标题为:centOS 7 无法安装 php-mbstring 扩展

基础教程推荐