Note : I\'ve read all questions about this problem
PEAR is installed and configured on my system (Ubuntu 11.10 + Apache/2.2.20). Because
<
PEAR 1.9.2 is outdated and broken beyond any hope of repair with newer pear server infrastructure.
I have no clue why distributions still insist on something that is just broken :)
Install a new pear via go-pear.phar and make sure you have pear version 1.9.4
and then force pear to ignore it's old cache files using
sudo pear install --force --alldeps phpunit/phpunit
sudo apt-get purge php5-pear
Now
which pear
should result in the command not being found. If it is still there delete the binary and the associated php classes in /usr/share/php.
From your console history I'd say you didn't install the new pear with sudo
rights so it landed in /home/ or in /usr/local/ instead of in the default system location.
It shouldn't matter as long as you