Symfony 3 composer, ext-dom and ext-xml missing [duplicate]

廉价感情. 提交于 2020-01-01 08:40:21

问题


I am running Linux Mint 18.1. My IDE is PhpStorm and I am trying to install PHPUnit trough the composer. I followed the installation steps at https://getcomposer.org/download/.

Problem 1 - Installation request for phpunit/phpunit 6.4.x-dev -> satisfiable by phpunit/phpunit[6.4.x-dev]. - phpunit/phpunit 6.4.x-dev requires ext-dom * -> the requested PHP extension dom is missing from your system.
Problem 2 - symfony/symfony v3.3.6 requires ext-xml * -> the requested PHP extension xml is missing from your system. - symfony/symfony v3.3.6 requires ext-xml * -> the requested PHP extension xml is missing from your system. - symfony/symfony v3.3.6 requires ext-xml * -> the requested PHP extension xml is missing from your system. - Installation request for symfony/symfony (locked at v3.3.6, required as 3.3.*) -> satisfiable by symfony/symfony[v3.3.6].

Solutions I have tried:

  • Install php-xml
  • Install php7.0-xml
  • This answer says to check if "extension=dom.so" is enabled in any of your php.ini files. It is not even present in my files

Any suggestions? Thanks a lot!


回答1:


All you need to install from your terminal in Debian is:

sudo apt-get install php-xml

Or, if you're using PHP 7:

 sudo apt-get install php7.0-xml


来源:https://stackoverflow.com/questions/45593729/symfony-3-composer-ext-dom-and-ext-xml-missing

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!