首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >webtatic php mbstring将模块添加到centos6.6

webtatic php mbstring将模块添加到centos6.6
EN

Stack Overflow用户
提问于 2014-12-23 22:06:02
回答 1查看 1.1K关注 0票数 0

我一直在使用webtatic php 5.4.34版本来开发facebook应用程序,但由于这个错误而突然停止- PHP致命错误:在/var/www/html/facebook/src/Facebook/HttpClients/FacebookCurlHttpClient.php的第306行调用未定义的函数Facebook\HttpClients\mb_strlen()

它需要mbstring模块(这是添加到facebook php函数中以解决http头问题的模块,无法注释掉我希望做的事情)

Webtatic instructions在安装中提到了一个点,在那里我可能有机会选择要安装的php模块,但在安装了php54w之后,我决定升级到php56w,希望这个使用mbstring的选项会出现。

所以我现在已经升级到centos6.6,然后尝试安装php56w,但是得到了这个众所周知的错误: php56w-common conflicts with php54w-common-5.4.34-1.w6.x86_64。

该解决方案适用于php54w,但正如您这次看到的那样,您能建议一个修复方法吗

另外,有没有更好的方法来解决丢失的mbstring模块?

代码语言:javascript
复制
[root@SECURE21 html]# rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm
Retrieving https://mirror.webtatic.com/yum/el6/latest.rpm
Preparing… ########################################### [100%]
package webtatic-release-6-5.noarch is already installed
[root@SECURE21 html]#
[root@SECURE21 html]#
[root@SECURE21 html]# yum install php56w php56w-opcache
Loaded plugins: fastestmirror, replace
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: anorien.csc.warwick.ac.uk
* extras: mirror.econdc.com
* updates: centos.openitc.uk
* webtatic: uk.repo.webtatic.com
Resolving Dependencies
–> Running transaction check
—> Package php56w.x86_64 0:5.6.2-1.w6 will be installed
–> Processing Dependency: php56w-common(x86-64) = 5.6.2-1.w6 for package: php56w-5.6.2-1.w6.x86_64
–> Processing Dependency: php56w-cli(x86-64) = 5.6.2-1.w6 for package: php56w-5.6.2-1.w6.x86_64
–> Processing Dependency: php56w-cli = 5.6.2-1.w6 for package: php56w-5.6.2-1.w6.x86_64
—> Package php56w-opcache.x86_64 0:5.6.2-1.w6 will be installed
–> Running transaction check
—> Package php56w-cli.x86_64 0:5.6.2-1.w6 will be installed
—> Package php56w-common.x86_64 0:5.6.2-1.w6 will be installed
–> Processing Conflict: php56w-common-5.6.2-1.w6.x86_64 conflicts php-common Finished Dependency Resolution
Error: php56w-common conflicts with php54w-common-5.4.34-1.w6.x86_64
You could try using –skip-broken to work around the problem
You could try running: rpm -Va –nofiles –nodigest
[root@SECURE21 html]#
[root@SECURE21 html]#
[root@SECURE21 html]# yum install yum-plugin-replace
Loaded plugins: fastestmirror, replace
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: anorien.csc.warwick.ac.uk
* extras: mirror.econdc.com
* updates: mirror.for.me.uk
* webtatic: uk.repo.webtatic.com
Package yum-plugin-replace-0.2.7-1.ius.el6.noarch already installed and latest version
Nothing to do
[root@SECURE21 html]# yum replace –enablerepo=webtatic-testing php-common –replace-with=php56w-common
Loaded plugins: fastestmirror, replace
Replacing packages takes time, please be patient…
Error: Package ‘php-common’ is not installed.
[root@SECURE21 html]#

EN

回答 1

Stack Overflow用户

发布于 2014-12-23 22:45:33

我在yum install php54w-mbstring时修复了它。现在,facebook代码运行良好。在深入研究了几个小时之后,这一切都太明显了!

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/27621990

复制
相关文章

相似问题

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