2014-01-21 37 views
0

我想安裝的phpDocumentor我的Symfony 2.4的項目,所以我加了這兩條線到我的composer.json:Symfony2的安裝phpDocumentor的

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

whene我EXECUT 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?!! 謝謝。

+2

什麼是啓用了您擁有php_xsl擴展php.ini文件的位置?有時候,Web服務器使用不同的php.ini比作曲家,所以你可以有你的網站啓用了擴展名(即在的phpinfo顯示出來()),而不是命令行。 – Divey

+0

感謝您的答覆,我在本地機器上工作,我wampserver安裝2.4和我激活php_xsl從它的圖形界面。 – medKHELIFI

+0

啓用WAMP並不一定意味着它可以用於作曲家。退房http://stackoverflow.com/questions/16372888/intl-extension-php-intl-dll-with-wamp和http://stackoverflow.com/questions/16372888/intl-extension-php-intl-dll-與-WAMP。 – Divey

回答

-1

@Mohamed:我得到了同樣的問題,幾天就回來,但是當我嘗試下面的命令它,然後工作successfully.This將更新您的composer.phar文件。

php composer.phar self-update 
+0

它與作曲家版本無關。 https://github.com/phpDocumentor/phpDocumentor2/issues/587 – white

1

好,我剛纔已經回答這個here ...還不如闡明。

基本上你還需要啓用PHP CLI所使用的php.ini文件的擴展名,因爲這是作曲家在命令行上運行它時使用的一個擴展名。

(礦是:C:\ WAMP \ BIN \ PHP \ php5.4.12 \ php.ini中

好運。