Composer安装,外部扩展丢失-LEMP Centos 7

时间:2019-04-16 12:50:51

标签: 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上的LEMP堆栈 7.3

我在其他地方发现我需要安装php-xml(通过remi repo)

如何克服此错误?

1 个答案:

答案 0 :(得分:0)

Here is what I finally found and did:

I must have had the incorrect remi repo. sudo yum-config-manager --enable remi-php73
Then I reinstalled php-xml sudo yum install php-xml,br.

composer install then ran without error