0

Symfony 2.4 プロジェクトに phpdocumentor をインストールしたいので、次の 2 行を composer.json に追加しました。

"require": {
   //my old requires
   "phpdocumentor/template-abstract": "~1.2",
   "phpdocumentor/phpdocumentor": "2.1.*@dev"
}

php composer.phar update を実行すると、次のエラーが発生します。

 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 に答える