1 wget http://pear.php.net/go-pear.phar 2 sudo mv go-pear.phar /usr/local/php5318/ 3 cd /usr/local/php5318 4 php go-pear.phar
安装成功之后,准备PHPUnit,需要先添加几个PHPUnit及其依赖的channel:
1 pear channel-discover pear.phpunit.de 2 pear channel-discover components.ez.no 3 pear channel-discover pear.symfony-project.com 4 pear update-channels 5 pear upgrade-all
完了之后安装:
pear install –alldeps phpunit/PHPUnit
结果报错了:
Unknown remote channel: pear.symfony.com
phpunit/PHPUnit requires package "channel://pear.symfony.com/Yaml" (version >= 2.1.0)
后来google了很多,才找到一条有用的解决方案:
1 pear channel-discover pear.symfony.com 2 pear install pear.symfony.com/Yaml
然后再次执行
pear install –alldeps phpunit/PHPUnit
安装成功。
安装Xdebug
安装xdebug比较简单的,直接根据http://xdebug.org/docs/install就可以了,配置上面也有http://xdebug.org/docs/不copy了,哈哈哈。