0

我想将 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?!!谢谢你。

4

2 回答 2

1

好的,我只是在这里回答了这个问题..不妨澄清一下。

基本上,您还需要在 PHP CLI 使用的 php.ini 文件中启用扩展,因为这是 composer 在命令行上运行时使用的扩展。

(我的在:C:\wamp\bin\php\php5.4.12\php.ini

祝你好运。

于 2014-04-28T05:01:46.147 回答
-1

@Mohamed:几天前我遇到了同样的问题,但是当我尝试以下命令时它成功运行。这将更新您的 composer.phar 文件。

php composer.phar self-update
于 2014-01-22T05:05:41.177 回答