2014-03-12 97 views
0

我一直在嘗試安裝phpunit骨架生成器。我開始與錯誤安裝phpunit骨架生成器

ear channel-discover pear.phpunit.de     
Channel "pear.phpunit.de" is already initialised 

PHPUnit的工作,並在嘗試安裝骨架發生器我得到以下信息,我不明白如何解決它。我不知道從哪裏開始尋找解決這一所以一些指針會感激地收到

pear remote-list 

Warning: lstat(): Lstat failed for /var/folders/jb/60nkj_096yq3kkpg_p4czs4c5cr2p_/T//pear/cache/e9b88593398eb69a9ff91042351d646arest.cacheid in PEAR/REST.php on line 276 
PHP Warning: lstat(): Lstat failed for /var/folders/jb/60nkj_096yq3kkpg_p4czs4c5cr2p_/T//pear/cache/e9b88593398eb69a9ff91042351d646arest.cacheid in /usr/local/Cellar/php54/5.4.23/lib/php/PEAR/REST.php on line 276 

Warning: lstat(): Lstat failed for /var/folders/jb/60nkj_096yq3kkpg_p4czs4c5cr2p_/T//pear/cache/e9b88593398eb69a9ff91042351d646arest.cacheid in /usr/local/Cellar/php54/5.4.23/lib/php/PEAR/REST.php on line 276 
Could not open /var/folders/jb/60nkj_096yq3kkpg_p4czs4c5cr2p_/T//pear/cache/e9b88593398eb69a9ff91042351d646arest.cacheid for writing. 


[email protected]:~ » pear install phpunit/PHPUnit_SkeletonGenerator               1 ↵ 

Warning: lstat(): Lstat failed for /var/folders/jb/60nkj_096yq3kkpg_p4czs4c5cr2p_/T//pear/cache/b116edc6554e2f3e3c908e2a309732a8rest.cacheid in PEAR/REST.php on line 276 
PHP Warning: lstat(): Lstat failed for /var/folders/jb/60nkj_096yq3kkpg_p4czs4c5cr2p_/T//pear/cache/b116edc6554e2f3e3c908e2a309732a8rest.cacheid in /usr/local/Cellar/php54/5.4.23/lib/php/PEAR/REST.php on line 276 

Warning: lstat(): Lstat failed for /var/folders/jb/60nkj_096yq3kkpg_p4czs4c5cr2p_/T//pear/cache/b116edc6554e2f3e3c908e2a309732a8rest.cacheid in /usr/local/Cellar/php54/5.4.23/lib/php/PEAR/REST.php on line 276 
No releases available for package "pear.phpunit.de/PHPUnit_SkeletonGenerator" 

install failed 

回答

1

看起來好像你需要使用sudo前綴您梨遠程-list命令,並執行它的根。

$ sudo pear remote-list 

你也需要這樣做來安裝軟件包。這是非常正常的(用於安裝軟件包)。

+0

這是一個已知的bug:http://pear.php.net/bugs/bug.php?id=20319 – cweiske