无法安装mbstring php冲突 [英] Cannot install mbstring php conflict

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

问题描述

我正在尝试使用php 5.6安装php-mbstring,但出现此错误:

I am trying to install php-mbstring with php 5.6 and I get this error:

Error: php56w-common conflicts with php-common-5.4.45-3.el6.remi.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

我尝试安装php56-mbstring,但得到以下提示.我不确定这是否意味着它已经安装:

I have attempted to install php56-mbstring, but I get the following. I am not sure if this means it is already installed or not:

Nothing to do

最适合安装的软件包是什么?我应该尝试解决哪个问题,以及如何解决它.谢谢!

What is the most appropriate package to install? Which one should I be trying to resolve and how can I resolve it. Thanks!

推荐答案

我的运行PHP 5.6.17的服务器遇到了同样的问题.对我来说,我寻找的扩展名似乎是 php56w-mbstring.x86_64

I run into same problem with my server running PHP 5.6.17. For me it seems that the extension that I was looking for was php56w-mbstring.x86_64

可以从 webtatic 存储库中找到.我不记得自己启用该功能,但万一缺少该功能,以下是如何启用该存储库的说明: http://www.certdepot.net/rhel7-install-webtatic-repository/

It can be found from webtatic repository. I don't remember enabling that by myself, but in case it is missing here is the instructions how to enable said repo: http://www.certdepot.net/rhel7-install-webtatic-repository/

您可以通过命令 yum repolist

要搜索您的存储库是否与mbstring相关,请使用命令 yum list * mbstring *

To search if your repos has something related to mbstring use command yum list *mbstring*

所以对我来说解决方案是: yum install php56w-mbstring.x86_64

So solution for me was this: yum install php56w-mbstring.x86_64

最后重新启动Apache:服务httpd重新启动

Finally restart Apache: service httpd restart

顺便说一句,我正在运行CentOS服务器,因此您的命令在您的OS上可能会略有不同.

By the way, I am running CentOS server so your commands might be slightly different on your OS.

这篇关于无法安装mbstring php冲突的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆