PHPUnit安装蓝调 [英] PHPUnit installation blues
问题描述
I have installed PHPUnit by the PHPUnit Manual, Chapter 3. Installing PHPUnit,
pear channel-discover pear.phpunit.de
pear channel-discover components.ez.no
pear channel-discover pear.symfony-project.com
pear install phpunit/PHPUnit
现在我的PHPUnit文件夹如下:
Now my PHPUnit folder looks like:
> pwd
/usr/share/php/PHPUnit
> ll
drwxr-xr-x 4 root root 4096 2011-05-19 15:12 ./
drwxr-xr-x 19 root root 4096 2011-05-19 15:13 ../
drwxr-xr-x 5 root root 4096 2011-05-19 15:13 Extensions/
drwxr-xr-x 3 root root 4096 2011-05-19 15:12 Framework/
如您所见,没有可执行文件.命令phpunit
不存在.
As you can see, no executables. Command phpunit
does not exist.
操作系统:Ubuntu 11.04.
OS: Ubuntu 11.04.
如何解决?
推荐答案
可执行文件应为/usr/bin/phpunit
.或在pear config-show | grep execu
中解决此问题.
The executable should be /usr/bin/phpunit
. Or in pear config-show | grep execu
for that matter.
如果不尝试的话:
pear install --force --alldeps phpunit/phpunit
,然后再次检查.它应该修复损坏的安装.
and check again. It should fix the broken installation.
还要确保您使用的是 pear version 1.9.2
.如果可能是问题所在.
Also make sure you are using pear version 1.9.2
. If it that might be the problem.
运行pear install pear/pear
来解决该问题,或者解决该问题的方法(安装phpunit仍然会给您错误):
Run pear install pear/pear
to fix that or if that doesn't work out (and installing phpunit still gives you errors):
pear install --force --alldeps pear/pear
这篇关于PHPUnit安装蓝调的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!