Проблемы с установкой композитора

Когда я пытаюсь установить композитор, я получил следующую ошибку. На самом деле все модули установлены.

Насколько мне известно, будет два файла конфигурации (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

1 ответ

Попробуйте использовать php -m чтобы убедиться, что модули были включены в вашу установку php.

Если их нет в списке, вам нужно добавить их в свой php.ini.

Другие вопросы по тегам