Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/275.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/26.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
安装PHPUnit'时出错;未知频道“;梨.phpunit.de“;在;pear.phpunit.de/phpunit“';_Php_Linux - Fatal编程技术网

安装PHPUnit'时出错;未知频道“;梨.phpunit.de“;在;pear.phpunit.de/phpunit“';

安装PHPUnit'时出错;未知频道“;梨.phpunit.de“;在;pear.phpunit.de/phpunit“';,php,linux,Php,Linux,在pear.PHPUnit.de/PHPUnit中安装PHPUnit未知通道pear.PHPUnit.de时出错Debian-4操作系统上的无效包名/包文件“pear.PHPUnit.de/PHPUnit” 我按照中包含的说明进行了操作,并尝试了PHAR方法和PEAR方法,但两者都不起作用 以下是服务器设置: PEAR Version: 1.9.4 PHP Version: 5.4.4-14+deb7u3 Zend Engine Version: 2.4.0 Running on: Lin

pear.PHPUnit.de/PHPUnit中安装
PHPUnit
未知通道
pear.PHPUnit.de
时出错
Debian-4
操作系统上的无效包名/包文件“pear.PHPUnit.de/PHPUnit”

我按照中包含的说明进行了操作,并尝试了
PHAR
方法和
PEAR
方法,但两者都不起作用

以下是服务器设置:

PEAR Version: 1.9.4

PHP Version: 5.4.4-14+deb7u3

Zend Engine Version: 2.4.0

Running on: Linux lsh1001 3.9.6-hw+ #6 SMP
当我尝试使用
PEAR
方法安装时,我运行:

pear config-set auto_discover 1
我收到

config-set succeeded
然而,当我跑的时候

pear install pear.phpunit.de/PHPUnit
我收到:

Attempting to discover channel "pear.phpunit.de"...
downloading channel.xml ...
Starting to download channel.xml (804 bytes)
....done: 804 bytes
Auto-discovered channel "pear.phpunit.de", alias "pear.phpunit.de", adding to registry
unknown channel "pear.phpunit.de" in "pear.phpunit.de/PHPUnit"
invalid package name/package file "pear.phpunit.de/PHPUnit"
install failed
-bash: sudo: command not found
我不熟悉使用命令行提示符,所以可能会做一些奇怪的事情。我尝试过在代码行前面加上sudo,但我收到了:

Attempting to discover channel "pear.phpunit.de"...
downloading channel.xml ...
Starting to download channel.xml (804 bytes)
....done: 804 bytes
Auto-discovered channel "pear.phpunit.de", alias "pear.phpunit.de", adding to registry
unknown channel "pear.phpunit.de" in "pear.phpunit.de/PHPUnit"
invalid package name/package file "pear.phpunit.de/PHPUnit"
install failed
-bash: sudo: command not found
当我这样做的时候

我希望能够使用浏览器前端而不是命令行安装运行
PHPUnit
。我还尝试了
PHAR
安装方法,但不确定如何指向已安装的
phpunit.PHAR
文件。我可以直接从命令行运行
phpunit.phar
文件,但是如何在
php.ini
文件中引用它呢?我已将文件保留在根目录中,尚未移动它

试试这个命令流

pear channel-discover pear.phpunit.de

pear install phpunit/PHPUnit
而且。。。如果您是
root
ignore
sudo

Reffer

尝试此命令流

pear channel-discover pear.phpunit.de

pear install phpunit/PHPUnit
而且。。。如果您是
root
ignore
sudo

裁判