2014-03-12 69 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