Xdebug及PHPUnit安装Unknown remote channel: pear.symfony.com

一:环境介绍

PHP5.3.18

xdebug2.1

PHPUnit3.7


二:安装PHPUnit

因为本地环境是源码编译安装的,所以我选择用pear安装PHPUnit,首先需要先安装pear

 

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了,哈哈哈。

你可能感兴趣的:(channel)