Search code examples
ubuntuphpunitpear

unable to install latest phpUnit in Ubuntu 10.04


I'm trying to install PHPUnit in Ubuntu 10.04 but I get these error messages

sudo pear install -a pear.phpunit.de/PHPUnit
Duplicate package channel://pear.phpunit.de/File_Iterator-1.3.3 found
Duplicate package channel://pear.phpunit.de/File_Iterator-1.3.2 found
install failed

I tried reinstalling PEAR, upgrading it; updated the PEAR and PHPUnit channel; cleared the PEAR's cache but still no luck, I keep getting the same error.

Does anyone have the same problem and know how to solve it?

Thank you.


Solution

  • Yep, pointed out by Dex, but thought I'd put it up as an answer as well.

    not sure why you need sudo though (taken parts from edorian's answer), this is what I did.

    pear clear-cache
    pear install phpunit/File_Iterator
    pear install phpunit/Text_Template
    pear install --force --alldeps pear.phpunit.de/PHPUnit
    

    basically, file iterator and text template were the two I was getting duplicates on, so those are the one's I had to install individually so it wouldn't fail on those when doing the phpunit install.