我正在尝试使用以下命令安装PHPUnit_Selenium
pear install phpunit/PHPUnit_Selenium
我正在运行的pear版本是1.9.4。返回上述命令
试图发现频道"phpunit"..。尝试回到https而不是http在频道“phpunit”上."phpunit/PHPUnit_Selenium“中的未知通道"phpunit”无效的包名/包文件"phpunit/PHPUnit_Selenium“安装失败
搜索谷歌,我发现了这 (几次)作为一个建议。所以我试着
pear channel-discover pear.phpunit.de
和
sudo pear channel-discover pear.phpunit.de (万一它起了作用)
返回以前的命令
通过消息发现通道pear.phpunit.de :// failed : channel-add:无法打开"http://pear.phpunit.de/channel.xml“(文件http://pear.phpunit.de:80/channel.xml无效)(接收到:HTTP/1.113303FORTMG拒绝指定的统一资源定位器(URL)。))尝试通过https://发现通道" pear.phpunit.de“失败(通道-添加:无法打开"https://pear.phpunit.de/channel.xml”(连接到`pear.phpunit.de:443‘failed:操作超时))
安装PHPUnit_Selenium需要做些什么?
发布于 2013-12-19 16:59:26
也许您需要为pear指定一个代理来路由它的流量。试一试如下:
$ sudo pear config-set http_proxy http://foo.bar/
$ sudo pear channel-discover pear.phpunit.de
$ sudo pear install phpunit/PHP_Selenium发布于 2014-05-05 13:28:00
发布于 2013-12-19 18:18:40
用"pear.phpunit.de“代替"phpunit”
sudo pear install pear.phpunit.de/PHPUnit_SeleniumPhpunit需要安装curl,如果没有安装它,请尝试如下:
sudo apt-get install curl libcurl3 libcurl3-dev php5-curl
sudo service apache2 restarthttps://stackoverflow.com/questions/20686355
复制相似问题