Required php extension dom is missing

Laravel по-русски

Русское сообщество разработки на PHP-фреймворке Laravel.

Страницы 1

#1 04.03.2018 21:16:19

Ошибка PHP при установке laravel

Ставлю Laravel на Linux Ubuntu 14.04.5 LTS через composer.

composer create-project laravel/laravel laravel --prefer-dist
Your requirements could not be resolved to an installable set of packages. Problem 1 - phpunit/phpunit 6.5.7 requires ext-dom * -> the requested PHP extension dom is missing from your system. - phpunit/phpunit 6.5.6 requires ext-dom * -> the requested PHP extension dom is missing from your system. - phpunit/phpunit 6.5.5 requires ext-dom * -> the requested PHP extension dom is missing from your system. - phpunit/phpunit 6.5.4 requires ext-dom * -> the requested PHP extension dom is missing from your system. - phpunit/phpunit 6.5.3 requires ext-dom * -> the requested PHP extension dom is missing from your system. - phpunit/phpunit 6.5.2 requires ext-dom * -> the requested PHP extension dom is missing from your system. - phpunit/phpunit 6.5.1 requires ext-dom * -> the requested PHP extension dom is missing from your system. - phpunit/phpunit 6.5.0 requires ext-dom * -> the requested PHP extension dom is missing from your system. - phpunit/phpunit 6.4.4 requires ext-dom * -> the requested PHP extension dom is missing from your system. - phpunit/phpunit 6.4.3 requires ext-dom * -> the requested PHP extension dom is missing from your system. - phpunit/phpunit 6.4.2 requires ext-dom * -> the requested PHP extension dom is missing from your system. - phpunit/phpunit 6.4.1 requires ext-dom * -> the requested PHP extension dom is missing from your system. - phpunit/phpunit 6.4.0 requires ext-dom * -> the requested PHP extension dom is missing from your system. - phpunit/phpunit 6.3.1 requires ext-dom * -> the requested PHP extension dom is missing from your system. - phpunit/phpunit 6.3.0 requires ext-dom * -> the requested PHP extension dom is missing from your system. - phpunit/phpunit 6.2.4 requires ext-dom * -> the requested PHP extension dom is missing from your system. - phpunit/phpunit 6.2.3 requires ext-dom * -> the requested PHP extension dom is missing from your system. - phpunit/phpunit 6.2.2 requires ext-dom * -> the requested PHP extension dom is missing from your system. - phpunit/phpunit 6.2.1 requires ext-dom * -> the requested PHP extension dom is missing from your system. - phpunit/phpunit 6.2.0 requires ext-dom * -> the requested PHP extension dom is missing from your system. - phpunit/phpunit 6.1.4 requires ext-dom * -> the requested PHP extension dom is missing from your system. - phpunit/phpunit 6.1.3 requires ext-dom * -> the requested PHP extension dom is missing from your system. - phpunit/phpunit 6.1.2 requires ext-dom * -> the requested PHP extension dom is missing from your system. - phpunit/phpunit 6.1.1 requires ext-dom * -> the requested PHP extension dom is missing from your system. - phpunit/phpunit 6.1.0 requires ext-dom * -> the requested PHP extension dom is missing from your system. - phpunit/phpunit 6.0.9 requires ext-dom * -> the requested PHP extension dom is missing from your system. - phpunit/phpunit 6.0.8 requires ext-dom * -> the requested PHP extension dom is missing from your system. - phpunit/phpunit 6.0.7 requires ext-dom * -> the requested PHP extension dom is missing from your system. - phpunit/phpunit 6.0.6 requires ext-dom * -> the requested PHP extension dom is missing from your system. - phpunit/phpunit 6.0.5 requires ext-dom * -> the requested PHP extension dom is missing from your system. - phpunit/phpunit 6.0.4 requires ext-dom * -> the requested PHP extension dom is missing from your system. - phpunit/phpunit 6.0.3 requires ext-dom * -> the requested PHP extension dom is missing from your system. - phpunit/phpunit 6.0.2 requires ext-dom * -> the requested PHP extension dom is missing from your system. - phpunit/phpunit 6.0.13 requires ext-dom * -> the requested PHP extension dom is missing from your system. - phpunit/phpunit 6.0.12 requires ext-dom * -> the requested PHP extension dom is missing from your system. - phpunit/phpunit 6.0.11 requires ext-dom * -> the requested PHP extension dom is missing from your system. - phpunit/phpunit 6.0.10 requires ext-dom * -> the requested PHP extension dom is missing from your system. - phpunit/phpunit 6.0.1 requires ext-dom * -> the requested PHP extension dom is missing from your system. - phpunit/phpunit 6.0.0 requires ext-dom * -> the requested PHP extension dom is missing from your system. - Installation request for phpunit/phpunit ~6.0 -> satisfiable by phpunit/phpunit[6.0.0, 6.0.1, 6.0.10, 6.0.11, 6.0.12, 6.0.13, 6.0.2, 6.0.3, 6.0.4, 6.0.5, 6.0.6, 6.0.7, 6.0.8, 6.0.9, 6.1.0, 6.1.1, 6.1.2, 6.1.3, 6.1.4, 6.2.0, 6.2.1, 6.2.2, 6.2.3, 6.2.4, 6.3.0, 6.3.1, 6.4.0, 6.4.1, 6.4.2, 6.4.3, 6.4.4, 6.5.0, 6.5.1, 6.5.2, 6.5.3, 6.5.4, 6.5.5, 6.5.6, 6.5.7]. To enable extensions, verify that they are enabled in your .ini files: - /etc/php/7.0/cli/php.ini - /etc/php/7.0/cli/conf.d/10-mysqlnd.ini - /etc/php/7.0/cli/conf.d/10-opcache.ini - /etc/php/7.0/cli/conf.d/10-pdo.ini - /etc/php/7.0/cli/conf.d/20-calendar.ini - /etc/php/7.0/cli/conf.d/20-ctype.ini - /etc/php/7.0/cli/conf.d/20-exif.ini - /etc/php/7.0/cli/conf.d/20-fileinfo.ini - /etc/php/7.0/cli/conf.d/20-ftp.ini - /etc/php/7.0/cli/conf.d/20-gettext.ini - /etc/php/7.0/cli/conf.d/20-iconv.ini - /etc/php/7.0/cli/conf.d/20-json.ini - /etc/php/7.0/cli/conf.d/20-mbstring.ini - /etc/php/7.0/cli/conf.d/20-mysqli.ini - /etc/php/7.0/cli/conf.d/20-pdo_mysql.ini - /etc/php/7.0/cli/conf.d/20-phar.ini - /etc/php/7.0/cli/conf.d/20-posix.ini - /etc/php/7.0/cli/conf.d/20-readline.ini - /etc/php/7.0/cli/conf.d/20-shmop.ini - /etc/php/7.0/cli/conf.d/20-sockets.ini - /etc/php/7.0/cli/conf.d/20-sysvmsg.ini - /etc/php/7.0/cli/conf.d/20-sysvsem.ini - /etc/php/7.0/cli/conf.d/20-sysvshm.ini - /etc/php/7.0/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.

Можно как-то это все исправить одним махом?

Читайте также:  Структура языка html кратко

Источник

PHP — Ubuntu — ext-dom — the requested PHP extension dom is missing from your system

получаем серию ошибок: requires ext-dom * -> the requested PHP extension dom is missing from your system. :

Problem 1 - Installation request for dompdf/dompdf v0.8.3 -> satisfiable by dompdf/dompdf[v0.8.3]. - dompdf/dompdf v0.8.3 requires ext-dom * -> the requested PHP extension dom is missing from your system. Problem 2 - Installation request for phar-io/manifest 1.0.3 -> satisfiable by phar-io/manifest[1.0.3]. - phar-io/manifest 1.0.3 requires ext-dom * -> the requested PHP extension dom is missing from your system. Problem 3 - Installation request for phpunit/php-code-coverage 6.1.4 -> satisfiable by phpunit/php-code-coverage[6.1.4]. - phpunit/php-code-coverage 6.1.4 requires ext-dom * -> the requested PHP extension dom is missing from your system. Problem 4 - Installation request for phpunit/phpunit 7.5.16 -> satisfiable by phpunit/phpunit[7.5.16]. - phpunit/phpunit 7.5.16 requires ext-dom * -> the requested PHP extension dom is missing from your system. Problem 5 - Installation request for theseer/tokenizer 1.1.3 -> satisfiable by theseer/tokenizer[1.1.3]. - theseer/tokenizer 1.1.3 requires ext-dom * -> the requested PHP extension dom is missing from your system. Problem 6 - dompdf/dompdf v0.8.3 requires ext-dom * -> the requested PHP extension dom is missing from your system. - laravel/cashier v7.2.2 requires dompdf/dompdf ^0.8.0 -> satisfiable by dompdf/dompdf[v0.8.3]. - Installation request for laravel/cashier v7.2.2 -> satisfiable by laravel/cashier[v7.2.2].

Решение — доустановить модуль для PHP php-xml:

# apt install php-xml # systemctl restart apache2

Источник

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

puphpet / puphpet Public archive

PHP 5.6 is missing dom extension #2221

PHP 5.6 is missing dom extension #2221

Comments

Using a freshly created version box with PHP 5.6 gives me:

$ php -m [PHP Modules] calendar Core ctype date ereg exif fileinfo filter ftp gettext hash iconv intl json libxml mbstring mhash mysqli mysqlnd openssl pcntl pcre PDO pdo_mysql Phar posix readline Reflection session shmop sockets SPL standard sysvmsg sysvsem sysvshm tokenizer xdebug Zend OPcache zlib [Zend Modules] Xdebug Zend OPcache 

Running a composer install gives me

phpunit/phpunit 4.8.18 requires ext-dom * -> the requested PHP extension dom is missing from your system.

Which previously worked as late as two weeks on a box I built then.

The text was updated successfully, but these errors were encountered:

It looks like several modules (including xml) are being configured in /etc/php/7.0/mods-available but not in /etc/php/5.6/mods-available (and subsequently not sym-linked into the cli/conf.d and fpm/conf.d directories).

Looks like the PPA for PHP5.6 ( ondrej/php ) updated the php-5.6 package today and when I do a apt-cache show php-xml the version is 1:7.0+36+deb.sury.org~trusty+1 and the end of the description says:

This package is a dependency package, which depends on Debian’s default
PHP version (currently 7.0).

I am guessing there was an update that references base Debian packages for some of the PHP5.6 modules, and since the Debian packages are set for 7.0, those modules are also set to 7.0 (I don’t really know anything about this though, so I could be/probably am completely wrong).

Pretty much this looks like a problem from the ondrej/php PPA, and I don’t know enough about Debian/Ubuntu/PPAs/Puppet to figure out a fix.

Источник

[ext-mbstring, ex-dom] How to Install missing PHP Packages/Extensions in Ubuntu?

While installing Composer in Ubuntu, following issue was encountered during the installation of composer.

Issue Encountered

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.3 -> satisfiable by phar-io/manifest[1.0.3]. - phar-io/manifest 1.0.3 requires ext-dom * -> the requested PHP extension dom is missing from your system. Problem 2 - Installation request for phpunit/php-code-coverage 6.1.4 -> satisfiable by phpunit/php-code-coverage[6.1.4]. - phpunit/php-code-coverage 6.1.4 requires ext-dom * -> the requested PHP extension dom is missing from your system. Problem 3 - Installation request for phpunit/phpunit 7.5.2 -> satisfiable by phpunit/phpunit[7.5.2]. - phpunit/phpunit 7.5.2 requires ext-dom * -> the requested PHP extension dom is missing from your system. Problem 4 - Installation request for theseer/tokenizer 1.1.0 -> satisfiable by theseer/tokenizer[1.1.0]. - theseer/tokenizer 1.1.0 requires ext-dom * -> the requested PHP extension dom is missing from your system.

Log speaks for itself.
phar-iorequires ext-dom
phpunit/php-code-coverage 6.1.4 requires ext-dom
theseer/tokenizer 1.1.0 requires ext-dom

Resolution

As the log speaks we need to install the extension dom. This is how we do it:

sudo apt install php7.1-dom

If the log shows only one extension missing, than above command works. If there are other extension missing, you can add those extension in the same line like shown below:

sudo apt install php7.1-dom php7.1-ext-mbstring

That’s it. Now you won’t have any issues in installing composer. Enter composer install

Источник

Оцените статью