Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/hibernate/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Installation 安装phpunit骨架生成器时出错_Installation_Pear - Fatal编程技术网

Installation 安装phpunit骨架生成器时出错

Installation 安装phpunit骨架生成器时出错,installation,pear,Installation,Pear,我一直在尝试安装phpunit骨架生成器。我从 ear channel-discover pear.phpunit.de Channel "pear.phpunit.de" is already initialised phpunit正在工作,在尝试安装骨架生成器时,我收到以下消息,我不知道如何解决它。我不知道从哪里着手解决这个问题,所以我会感激地收到一些建议 pear remote-list Warning: lstat(): Lstat failed f

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

看起来您需要在pear远程列表命令前面加上sudo前缀,并以root用户身份执行它

$ sudo pear remote-list
安装软件包时也需要这样做。这是完全正常的(用于安装软件包)