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

查看:22
本文介绍了在 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 等):PhpMyAdmin 安装错误

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天全站免登陆