编程语言
首页 > 编程语言> > 作曲家的依赖,说明它没有php-xsl

作曲家的依赖,说明它没有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

标签:composer-php,phpdocumentor2,php
来源: https://codeday.me/bug/20191120/2044287.html