错误安装phpunit-skeleton generator

时间:2014-03-12 20:38:48

标签: install pear

我一直在尝试安装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.


myname@mycomp:~ » 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 个答案:

答案 0 :(得分:1)

看起来你需要在你的pear remote-list命令前加上sudo,并以root身份执行它。

$ sudo pear remote-list

您也需要这样做才能安装软件包。这是完全正常的(用于安装包)。