PHPUnit , PEAR upgrading Errors

前端 未结 4 1194
一生所求
一生所求 2021-01-12 03:33

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

<         


        
4条回答
  •  星月不相逢
    2021-01-12 04:11

    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
    

    Getting rid of the old pear:

    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

    • Get rid of the old pear
    • Change your php.ini include_path to the new pear install location

提交回复
热议问题