作曲家依赖项声明它没有 PHP-XSL



作曲家依赖项声明它没有php-xsl。我正在尝试安装 phpdocumentor/phpdocumentor,但由于要求,它不会让我安装。所以现在我正在尝试安装该要求,我得到这个:

$ composer require phpdocumentor/template-zend
Using version ~1.3 for phpdocumentor/template-zend
./composer.json has been updated
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
    - phpdocumentor/template-zend 1.3.2 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
    - phpdocumentor/template-zend 1.3.1 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
    - phpdocumentor/template-zend 1.3.0 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
    - Installation request for phpdocumentor/template-zend ~1.3 -> satisfiable by phpdocumentor/template-zend[1.3.0, 1.3.1, 1.3.2].

Installation failed, reverting ./composer.json to its original content.

PHP信息:

xsl
XSL enabled
libxslt Version 1.1.28
libxslt compiled against libxml Version 2.9.1
EXSLT   enabled
libexslt Version    1.1.28

或者它可能是告诉我我需要ext-xsl? 什么?或者它说在我看来,我需要PHP xsl?

这与标记的dup帖子不同,请参阅下面的评论以了解原因。

尝试运行 php -m 以获取所有已加载扩展的列表,并查看其中是否包含 XSL(快速php -m | grep xsl可以节省一些搜索时间)。

如果不是这种情况,您应该通过运行 php --ini 找出使用哪个 INI 文件。打开此文件并确保此行未注释(不带;前缀):

extension=php_xsl.dll

相关内容

  • 没有找到相关文章

最新更新