Phpunit file not found.
I have installed phpunit successfully:
sudo pear install --alldeps pear.phpunit.de/PHPUnit
but when i call phpunit in console i get error:
bash: / usr / bin / phpunit: no file or directory
I have:
- PEAR Version: 1.9.4
- PHP version: 5.3.6-13ubuntu3.6
Can anyone give me any advice?
the pear list gives me:
Installed packages, channel __uri:
==================================
(no packages installed)
Installed packages, channel components.ez.no:
=============================================
Package Version State
Base 1.8 stable
ConsoleTools 1.6.1 stable
Installed packages, channel doc.php.net:
========================================
(no packages installed)
Installed packages, channel pear.php.net:
=========================================
Package Version State
Archive_Tar 1.3.9 stable
Console_Getopt 1.3.1 stable
PEAR 1.9.4 stable
Structures_Graph 1.0.4 stable
XML_Util 1.2.1 stable
Installed packages, channel pear.phpunit.de:
============================================
Package Version State
File_Iterator 1.3.1 stable
PHPUnit 3.6.10 stable
PHPUnit_MockObject 1.1.1 stable
PHP_CodeCoverage 1.1.2 stable
PHP_Invoker 1.1.0 stable
PHP_Timer 1.0.2 stable
PHP_TokenStream 1.1.3 stable
Text_Template 1.1.1 stable
Installed packages, channel pear.symfony-project.com:
=====================================================
Package Version State
YAML 1.0.6 stable
Installed packages, channel pecl.php.net:
=========================================
(no packages installed)
+3
source to share
1 answer
Use -force
sudo pear install --force --alldeps pear.phpunit.de/PHPUnit
This will reinstall all packages and will generally work for the most common pear problems, and it looks like one of the cases where it just didn't quite finish everything, and if you don't --force
reinstall it, it will assume all packages are working fine.
+8
source to share