Composer 安装,ext-dom 丢失 - LEMP Centos 7

Rog*_*asy 0 php composer-php centos7

当我运行时composer install出现以下错误 theseer/tokenizer 1.1.0 requires ext-dom * -> the requested PHP extension dom is missing from your system

Centos 7 7.3 上的 LEMP 堆栈

我在其他地方发现我需要安装 php-xml,我这样做了(来自 remi 存储库)

我该如何克服这个错误?

Rog*_*asy 6

这是我最终发现并所做的:

我肯定有错误的 remi 仓库。 sudo yum-config-manager --enable remi-php73
然后我重新安装了 php-xml sudo yum install php-xml,br。

composer install然后运行没有错误