4

作曲家依赖声明它没有 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 帖子不同,请参阅下面的评论以了解原因。

4

1 回答 1

5

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

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

extension=php_xsl.dll
于 2015-04-16T22:15:43.160 回答