gpt4 book ai didi

Symfony 3 Composer ,缺少 ext-dom 和 ext-xml

转载 作者:行者123 更新时间:2023-12-02 03:41:51 25 4
gpt4 key购买 nike

我正在运行 Linux Mint 18.1。我的 IDE 是 PhpStorm,我正在尝试通过 Composer 安装 PHPUnit。我按照 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].

我尝试过的解决方案:

  • 安装 php-xml
  • 安装php7.0-xml
  • This answer表示检查您的任何 php.ini 文件中是否启用了“extension=dom.so”。它甚至不存在于我的文件中

有什么建议吗?非常感谢!

最佳答案

您需要从 Debian 终端安装的是:

sudo apt-get install php-xml

或者,如果您使用的是 PHP 7:

 sudo apt-get install php7.0-xml

关于Symfony 3 Composer ,缺少 ext-dom 和 ext-xml,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45593729/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com