当我在CakePHP3中运行composer install时,我得到扩展缺少错误

时间:2016-08-08 16:10:45

标签: php cakephp composer-php cakephp-3.0

当我在CakePHP3项目中运行composer install时,我会收到下一个错误:

  Problem 1
    - Installation request for cakephp/cakephp 3.2.12 -> satisfiable by cakephp/cakephp[3.2.12].
    - cakephp/cakephp 3.2.12 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
  Problem 2
    - cakephp/cakephp 3.2.12 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
    - cakephp/debug_kit 3.2.9 requires cakephp/cakephp >=3.1.0 <4.0 -> satisfiable by cakephp/cakephp[3.2.12].
    - Installation request for cakephp/debug_kit 3.2.9 -> satisfiable by cakephp/debug_kit[3.2.9].

我正在使用Ubuntu 16.04(注意PHP5的禁用包)

如何解决此问题?

1 个答案:

答案 0 :(得分:3)

由于错误消息明确指出您的环境缺少mbstring扩展程序,因此请安装它:sudo apt install php-mbstring