当我在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的禁用包)
如何解决此问题?
答案 0 :(得分:3)
由于错误消息明确指出您的环境缺少mbstring
扩展程序,因此请安装它:sudo apt install php-mbstring