当我在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禁用包)
如何解决这个问题?
由于错误信息清楚地说明您的环境缺少mbstring
扩展,因此只需安装它:sudo apt install php-mbstring