作曲家的依赖,说明它没有php-xsl [英] composer dependency stating it doesn't have php-xsl

查看:59
本文介绍了作曲家的依赖,说明它没有php-xsl的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一个作曲家依赖性表明它没有php-xsl。我正在尝试安装phpdocumentor / phpdocumentor,但是由于需要,它不允许我这样做。所以现在我正在尝试安装该要求,我得到了:

A composer dependency is stating it doesn't have php-xsl. I'm trying to install phpdocumentor/phpdocumentor, but it won't let me because of a requirement. So now I'm trying to install the requirement and I get this:

$ 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?

Or is it maybe telling me I need ext-xsl? What is that? Or is it saying what it looks like to me, that I need PHP xsl?

这与标记为dup的帖子不同,请参阅下面有关原因的评论。

This is different that the marked dup post, see my comment below as to why.

推荐答案

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

Try running php -m to get a list of all loaded extensions and see if XSL is included in it (a quick php -m | grep xsl could save some search time).

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

If it's not the case, you should find out which INI file is used by running php --ini. Open this file and make sure this line is uncommented (without a ; prefix):

extension=php_xsl.dll

这篇关于作曲家的依赖,说明它没有php-xsl的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆