douxian7534 2018-05-14 18:44
浏览 88

“即使在成功安装apt-get之后,系统也缺少”请求的PHP扩展mbstring“

I'm trying to

$composer require --dev phpunit/phpunit ^6.5

and get the following error:

 Problem 1
    - phpunit/phpunit 6.5.8 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.

So I ran the following multiple times

$sudo apt-get install php-mbstring

and get

php-mbstring is already the newest version (1:7.2+60ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

$ php --ini

Gives:

Configuration File (php.ini) Path: /etc/php/7.0/cli
Loaded Configuration File:         /etc/php/7.0/cli/php.ini

I've also uncommitted the extension=php_mbstring.dll line in /etc/php/7.0/cli/php.ini (irrelevant/wrong action)

And I still get the "mbstring is missing from your system" error.

I'm on Ubuntu 18.04

EDIT: the composer command also gives:

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/php_mbstring.dll' - /usr/lib/php/20151012/php_mbstring.dll: cannot open shared object file: No such file or directory in Unknown on line 0

Yes, un-commenting extension=php_mbstring.dll in php.ini on ubuntu was wrong/irrelevant (see comment)

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 delta降尺度计算的一些细节,有偿
    • ¥15 Arduino红外遥控代码有问题
    • ¥15 数值计算离散正交多项式
    • ¥30 数值计算均差系数编程
    • ¥15 redis-full-check比较 两个集群的数据出错
    • ¥15 Matlab编程问题
    • ¥15 训练的多模态特征融合模型准确度很低怎么办
    • ¥15 kylin启动报错log4j类冲突
    • ¥15 超声波模块测距控制点灯,灯的闪烁很不稳定,经过调试发现测的距离偏大
    • ¥15 import arcpy出现importing _arcgisscripting 找不到相关程序