php - composer 依赖声明它没有 php-xsl

标签 php composer-php phpdocumentor2

composer 依赖项表明它没有 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 吗?

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

最佳答案

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

如果不是这样,您应该通过运行 php --ini 找出使用了哪个 INI 文件。打开此文件并确保取消注释此行(没有 ; 前缀):

extension=php_xsl.dll

关于php - composer 依赖声明它没有 php-xsl,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29664357/

相关文章:

php - 列出对象时 S3Client 上的空响应或奇怪响应

php - PDO如何强制将值更新为int

symfony - 在 Sylius 中更新供应商 - 想象捆绑错误 (Symfony2)

php - 使用 PEAR 安装 phpDocumentor

phpdocumentor2 - 在 PHPDocumentor2 中生成 PDF?

php - Laravel Eloquent 从多个相关表中获取数据

javascript - Yii2 + AngularJS PrettyURL 启用工作

composer-php - 我可以自动从 store.shopware.com 更新 Shopware 插件以保证兼容性吗?

composer-php - Composer.json 获取最新的包版本和

PhpDocumentor : How to choose templates?