【问题标题】:composer install issues作曲家安装问题
【发布时间】:2016-01-01 19:46:34
【问题描述】:

当我尝试安装作曲家时 我收到以下错误。实际上所有模块都已安装。

据我所知,会有两个配置文件(apache2 和 cli)。

在两个配置文件中的模块都已启用。我仍然面临这个问题。

Problem 1
    - The requested PHP extension ext-gd * is missing from your system.
  Problem 2
    - The requested PHP extension ext-mcrypt * is missing from your system.
  Problem 3
    - The requested PHP extension ext-curl * is missing from your system.
  Problem 4
    - The requested PHP extension ext-intl * is missing from your system.
  Problem 5
    - The requested PHP extension ext-xsl * is missing from your system.
  Problem 6
    - The requested PHP extension ext-mbstring * is missing from your system.
  Problem 7
    - Installation request for braintree/braintree_php 2.39.0 -> satisfiable by braintree/braintree_php[2.39.0].
    - braintree/braintree_php 2.39.0 requires ext-curl * -> the requested PHP extension curl is missing from your system.
  Problem 8
    - Installation request for pelago/emogrifier v0.1.1 -> satisfiable by pelago/emogrifier[v0.1.1].
    - pelago/emogrifier v0.1.1 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.

当我尝试更新/安装时

sudo apt-get install php5-curl

Reading package lists... Done
Building dependency tree       
Reading state information... Done
php5-curl is already the newest version.
The following packages were automatically installed and are no longer required:
  linux-headers-3.13.0-46 linux-headers-3.13.0-46-generic
  linux-image-3.13.0-46-generic linux-image-extra-3.13.0-46-generic
  sendmail-base sendmail-cf sensible-mda
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 54 not upgraded.

更新: php -v

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

Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-zts-20121212/php_mbstring.dll' - /usr/lib/php/extensions/no-debug-zts-20121212/php_mbstring.dll: cannot open shared object file: No such file or directory in Unknown on line 0
PHP 5.5.9 (cli) (built: Sep  8 2015 18:01:37) 
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies

【问题讨论】:

  • 可能看起来像一个愚蠢的问题,但您是否检查过您是否在 php.ini 中启用了扩展?

标签: php curl composer-php command-line-interface mcrypt


【解决方案1】:

尝试使用php -m 确保已在您的php 安装中启用这些模块。

如果它们不在列表中,则必须将它们添加到 php.ini 中。

【讨论】:

  • 模块未列出。我也在 php.ini 中启用
  • 你确定你编辑了正确的 php.ini 吗?您的服务器上可能有多个 php.ini 或多个 php 版本。
  • 如何查看php.ini文件和路径的数量。你能给点思路吗?
  • 您能否将php -v 的输出添加到您的问题中,并向我们展示您是如何在 php.ini 中添加扩展的?
猜你喜欢
  • 2013-06-10
  • 2017-11-24
  • 2020-07-27
  • 2014-06-11
  • 1970-01-01
  • 2017-01-06
  • 2013-01-04
  • 2017-10-19
相关资源
最近更新 更多