在Mac上安装phpMyAdmin时缺少mbstring PHP扩展 [英] Missing mbstring PHP extension when installing phpMyAdmin on Mac

查看:145
本文介绍了在Mac上安装phpMyAdmin时缺少mbstring PHP扩展的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

PhpMyAdmin安装错误

在安装phpMyAdmin时遇到一些问题.我想解决以下问题,但是不知道从哪里开始(也许php.ini除外).

Having some issues with installing phpMyAdmin. I would like to resolve the following issue, but don't have a clue where to start (except maybe php.ini?).

这是错误消息.

The mbstring PHP extension was not found and you seem to be using a multibyte charset. Without the mbstring extension phpMyAdmin is unable to split strings correctly and it may result in unexpected results.

这是我在SO上找到的相关文章,该文章适用于Linux,但不适用于我的Mac(已更新PHP的OSX 10.6等):

And here's a related article I found on SO that was for Linux but didn't work on my Mac (OSX 10.6 with PHP updated, etc): PhpMyAdmin install errors

推荐答案

就像错误消息所言,您的PHP安装缺少mbstring扩展名.我的Snow Leopard中的Apple提供的PHP 5.3.3似乎拥有它,但是许多发行版都单独捆绑了这些扩展.例如,如果您从Macports使用PHP,则需要使用以下命令安装php5-mbstring -package:

Like the error message says, your PHP installation lacks the mbstring extension. The Apple-provided PHP 5.3.3 in my Snow Leopard seems to have it, but many distributions bundle the extensions separately. For instance, if you use PHP from macports you need to install the php5-mbstring -package with:

sudo port install php5-mbstring

这篇关于在Mac上安装phpMyAdmin时缺少mbstring PHP扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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