Андрей

Прошу помощи. Клонирую php-package. composer install выдает кучу проблем: Loading composer repositories with package information Installing dependencies (including require-dev) from lock file Your requirements could not be resolved to an installable set of packages. ``` Problem 1 - Installation request for phar-io/manifest 1.0.x-dev -> satisfiable by phar-io/manifest[1.0.x-dev]. - phar-io/manifest 1.0.x-dev requires ext-dom * -> the requested PHP extension dom is missing from your system. Problem 2 - Installation request for phar-io/manifest dev-master -> satisfiable by phar-io/manifest[dev-master]. - phar-io/manifest dev-master requires ext-dom * -> the requested PHP extension dom is missing from your system. Problem 3 - Installation request for phpunit/php-code-coverage 7.0.x-dev -> satisfiable by phpunit/php-code-coverage[7.0.x-dev]. - phpunit/php-code-coverage 7.0.x-dev requires ext-dom * -> the requested PHP extension dom is missing from your system. Problem 4 - Installation request for phpunit/php-code-coverage dev-master -> satisfiable by phpunit/php-code-coverage[dev-master]. - phpunit/php-code-coverage dev-master requires ext-dom * -> the requested PHP extension dom is missing from your system. Problem 5 - Installation request for phpunit/phpunit 8.2.x-dev -> satisfiable by phpunit/phpunit[8.2.x-dev]. - phpunit/phpunit 8.2.x-dev requires ext-dom * -> the requested PHP extension dom is missing from your system. Problem 6 - Installation request for phpunit/phpunit dev-master -> satisfiable by phpunit/phpunit[dev-master]. - phpunit/phpunit dev-master requires ext-dom * -> the requested PHP extension dom is missing from your system. Problem 7 - Installation request for satooshi/php-coveralls v1.1.0 -> satisfiable by satooshi/php-coveralls[v1.1.0]. - satooshi/php-coveralls v1.1.0 requires ext-simplexml * -> the requested PHP extension simplexml is missing from your system. Problem 8 - Installation request for squizlabs/php_codesniffer 3.x-dev -> satisfiable by squizlabs/php_codesniffer[3.x-dev]. - squizlabs/php_codesniffer 3.x-dev requires ext-simplexml * -> the requested PHP extension simplexml is missing from your system. Problem 9 - Installation request for squizlabs/php_codesniffer dev-master -> satisfiable by squizlabs/php_codesniffer[dev-master]. - squizlabs/php_codesniffer dev-master requires ext-simplexml * -> the requested PHP extension simplexml is missing from your system. Problem 10 - Installation request for theseer/tokenizer 1.1.2 -> satisfiable by theseer/tokenizer[1.1.2]. - theseer/tokenizer 1.1.2 requires ext-dom * -> the requested PHP extension dom is missing from your system. Problem 11 - satooshi/php-coveralls v1.1.0 requires ext-simplexml * -> the requested PHP extension simplexml is missing from your system. - codeclimate/php-test-reporter dev-master requires satooshi/php-coveralls 1.0 -> satisfiable by satooshi/php-coveralls[v1.1.0]. - Installation request for codeclimate/php-test-reporter dev-master -> satisfiable by codeclimate/php-test-reporter[dev-master].

To enable extensions, verify that they are enabled in your .ini files: - /etc/php/7.2/cli/php.ini - /etc/php/7.2/cli/conf.d/10-mysqlnd.ini - /etc/php/7.2/cli/conf.d/10-opcache.ini - /etc/php/7.2/cli/conf.d/10-pdo.ini - /etc/php/7.2/cli/conf.d/20-calendar.ini - /etc/php/7.2/cli/conf.d/20-ctype.ini - /etc/php/7.2/cli/conf.d/20-curl.ini - /etc/php/7.2/cli/conf.d/20-exif.ini - /etc/php/7.2/cli/conf.d/20-fileinfo.ini - /etc/php/7.2/cli/conf.d/20-ftp.ini - /etc/php/7.2/cli/conf.d/20-gettext.ini - /etc/php/7.2/cli/conf.d/20-iconv.ini - /etc/php/7.2/cli/conf.d/20-json.ini - /etc/php/7.2/cli/conf.d/20-mbstring.ini - /etc/php/7.2/cli/conf.d/20-mysqli.ini - /etc/php/7.2/cli/conf.d/20-pdo_mysql.ini - /etc/php/7.2/cli/conf.d/20-phar.ini - /etc/php/7.2/cli/conf.d/20-posix.ini - /etc/php/7.2/cli/conf.d/20-readline.ini - /etc/php/7.2/cli/conf.d/20-shmop.ini - /etc/php/7.2/cli/conf.d/20-sockets.ini - /etc/php/7.2/cli/conf.d/20-sysvmsg.ini - /etc/php/7.2/cli/conf.d/20-sysvsem.ini - /etc/php/7.2/cli/conf.d/20-sysvshm.ini - /etc/php/7.2/cli/conf.d/20-tokenizer.ini You can also run php --ini inside terminal to see which files are used by PHP in CLI mode.```

php-curl7.2 ставил, проблему не решило. Использую Убунту 18 под Вагрантом.

2 0

Разобрался, здесь решение: https://ru.hexlet.io/topics/30214

Желательно вынести это в задание. Многие спотыкаются.

0

Ага спасибо. Добавлю топик туда.

0
Мы учим программированию с нуля до стажировки и работы. Попробуйте наш бесплатный курс «Введение в программирование» или полные программы обучения по Node, PHP, Python и Java.

Хекслет

Подробнее о том, почему наше обучение работает →