Pear / php update – pear.php.net is using a unsupported protocal

and you get some wonderful error message such as: Notice: Undefined variable: dorest in PEAR/Command/Install.php on line 1220

Sometimes it happens…

Solution: locate the .channels/ directory
For ubuntu with Zend-CE 5.2 it’s in /usr/local/zend/share/pear/.channels/

And delete everything in there

sudo rm /usr/local/zend/share/pear/.channels/*

then do a fresh pear update-channels to reconstruct the serialized cache file in .channels/

sudo pear update-channels

if you also want to also install phpunit


cd /usr/local/zend/bin/
sudo ./pear channel-discover pear.phpunit.de
sudo ./pear install phpunit/PHPUnit

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>