composer updateでthe requested PHP extension dom is missing from your system.
新しい環境で、composer update(install) を実行したところ、
the requested PHP extension dom is missing from your system.というエラーが発生しました。以下のとおりです。
# sudo -u apache ./composer.phar update Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages. Problem 1 - 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. - (略) - 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.5.6]. To enable extensions, verify that they are enabled in your .ini files: - /etc/php.iniyumで入れようとしても見つからず。
# yum list php-dom Loaded plugins: langpacks, priorities, update-motd Error: No matching Packages to list # yum list php72-dom Loaded plugins: langpacks, priorities, update-motd Error: No matching Packages to list
調べてみたところ、php-xmlを入れると解決できるとのことだったので、信頼できる情報かわからなかったんだけど、試してみました
確認
確認
# yum list php-xml Loaded plugins: langpacks, priorities, update-motd Available Packages php-xml.x86_64 7.2.0-3.amzn2.0.1 amzn2extra-lamp-mariadb10.2-php7.2インストール
yum install php-xml Loaded plugins: langpacks, priorities, update-motd amzn2-core | 2.0 kB 00:00:00 Resolving Dependencies (略) (略) (略) (略)ということで成功しました!