【发布时间】:2014-01-21 18:30:19
【问题描述】:
我想将 phpdocumentor 安装到我的 Symfony 2.4 项目中,所以我在 composer.json 中添加了这两行:
"require": {
//my old requires
"phpdocumentor/template-abstract": "~1.2",
"phpdocumentor/phpdocumentor": "2.1.*@dev"
}
当我执行 php composer.phar 更新时,出现以下错误:
Problem 1
- phpdocumentor/template-abstract 1.2.1 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
- phpdocumentor/template-abstract 1.2 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
- Installation request for phpdocumentor/template-abstract ~1.2 -> satisfiable by phpdocumentor/template-abstract[1.2, 1.2.1].
虽然我在我的 php 扩展中安装了 php_xsl?!! 谢谢。
【问题讨论】:
-
启用了 php_xsl 扩展的 php.ini 文件的位置是什么?有时网络服务器使用与 composer 不同的 php.ini,因此您可以为您的网站启用扩展(即显示在 phpinfo() 中)但不能用于命令行。
-
感谢您的回复,我在本地机器上工作,我安装了 wampserver 2.4,并从其图形界面激活了 php_xsl。
-
启用 WAMP 并不一定意味着它已启用作曲家。查看stackoverflow.com/questions/16372888/… 和stackoverflow.com/questions/16372888/…。
-
对不起,我做了主题中提到的事情:(将所有 icu* 复制到我的 apache bin 文件夹)但我有同样的问题!!!
-
php -m | grep xsl和php -i | grep ini的输出是什么?将php.ini文件的位置与您在从您的网络服务器访问带有phpinfo()的php 文件时看到的位置进行比较。
标签: php symfony composer-php phpdocumentor2