PHPUnit 安装忧郁
我已经按照 PHPUnit 手册安装了 PHPUnit,第 3 章安装 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 文件夹如下所示:
> 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
不存在。
操作系统:Ubuntu 11.04。
如何解决?
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
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/
As you can see, no executables. Command phpunit
does not exist.
OS: Ubuntu 11.04.
How can it be fixed?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
可执行文件应为
/usr/bin/phpunit
。或者在 pear config-show | 中grep execu 就此事而言。如果不尝试:
然后再次检查。它应该修复损坏的安装。
另请确保您使用的是
pear 版本 1.9.2
。如果是的话那可能就是问题所在。运行
pear install pear/pear
来解决这个问题,或者如果不起作用(安装 phpunit 仍然会出现错误):The executable should be
/usr/bin/phpunit
. Or inpear config-show | grep execu
for that matter.It case it's not try:
and check again. It should fix the broken installation.
Also make sure you are using
pear version 1.9.2
. If it that might be the problem.Run
pear install pear/pear
to fix that or if that doesn't work out (and installing phpunit still gives you errors):