【问题标题】:When I run composer install inside CakePHP3 I get extension missing errors当我在 CakePHP3 中运行 composer install 时,我得到扩展丢失错误
【发布时间】:2016-08-08 16:10:45
【问题描述】:

当我在我的 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 的禁用软件包)

我该如何解决这个问题?

【问题讨论】:

  • 尝试运行apt-get build-dep libapache2-mod-php5
  • “系统中缺少请求的 PHP 扩展 mbstring”的哪一部分不清楚?安装扩展。
  • 大部分蛋糕 php5 包在 ubuntu 16 上被丢弃
  • 你是如何安装 PHP 的? Ubuntu 16.04 的 php-cgiphp-cli 软件包应包含开箱即用的 mbstring 扩展。

标签: php cakephp composer-php cakephp-3.0


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 2014-10-21
    • 2020-12-08
    • 1970-01-01
    • 2021-08-01
    • 2022-08-09
    • 2020-06-15
    • 1970-01-01
    • 2019-08-12
    • 1970-01-01
    相关资源
    最近更新 更多