首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >centOS 7无法安装php-mbstring扩展

centOS 7无法安装php-mbstring扩展
EN

Stack Overflow用户
提问于 2015-02-26 18:25:51
回答 7查看 85.1K关注 0票数 10

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

代码语言:javascript
复制
    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

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

谢谢你的帮忙

EN

回答 7

Stack Overflow用户

发布于 2015-02-26 18:32:00

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

代码语言:javascript
复制
sudo yum remove php-common

然后,您可以:

代码语言:javascript
复制
sudo yum install php-mbstring

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

票数 20
EN

Stack Overflow用户

发布于 2015-08-29 16:35:03

以下是来自AWS Amazon论坛的答案:

代码语言:javascript
复制
yum -y install yum-utils
yum repolist all
yum-config-manager --enable rhui-REGION-rhel-server-extras rhui-REGION-rhel-server-optional

然后你可以安装php-mbstring,也许,我不是很清楚,但也许它只对亚马逊上的服务器有帮助。

票数 15
EN

Stack Overflow用户

发布于 2019-06-22 04:04:20

需要搜索哪个mbstring版本需要您。

代码语言:javascript
复制
cat /etc/redhat-release && php -v && yum search mbstring



========================================================================= N/S matched: mbstring ==========================================================================
ea-php54-php-mbstring.x86_64 : A module for PHP applications which need multi-byte string handling
ea-php55-php-mbstring.x86_64 : A module for PHP applications which need multi-byte string handling
ea-php56-php-mbstring.x86_64 : A module for PHP applications which need multi-byte string handling
ea-php70-php-mbstring.x86_64 : A module for PHP applications which need multi-byte string handling
ea-php71-php-mbstring.x86_64 : A module for PHP applications which need multi-byte string handling
ea-php72-php-mbstring.x86_64 : A module for PHP applications which need multi-byte string handling
ea-php73-php-mbstring.x86_64 : A module for PHP applications which need multi-byte string handling

现在您可以像我使用php7.1一样检查您实际需要的内容,因此我的命令将是

代码语言:javascript
复制
sudo yum install ea-php71-php-mbstring
票数 6
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/28739892

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档