【发布时间】:2014-01-08 07:06:58
【问题描述】:
我正在尝试使用命令安装PHPUnit_Selenium
pear install phpunit/PHPUnit_Selenium
我运行的 pear 版本是 1.9.4。上述命令返回
正在尝试发现频道“phpunit”... 尝试在通道“phpunit”上回退到 https 而不是 http... “phpunit/PHPUnit_Selenium”中的未知频道“phpunit” 无效的包名/包文件“phpunit/PHPUnit_Selenium” 安装失败
搜索谷歌我发现this(几次)作为建议。所以我尝试了
pear channel-discover pear.phpunit.de
和
sudo pear channel-discover pear.phpunit.de(以防它有所作为)
上一条命令返回
通过 http:// 发现通道 pear.phpunit.de 失败并显示消息:通道添加:无法打开“http://pear.phpunit.de/channel.xml”(文件 http://pear.phpunit.de:80/channel.xml 无效(接收:HTTP/1.1 403 Forbidden(Forefront TMG 拒绝指定的统一资源定位器 (URL)。) )) 尝试通过 https:// 发现频道 pear.phpunit.de 发现频道“pear.phpunit.de”失败(频道添加:无法打开“https://pear.phpunit.de/channel.xml”(连接到`pear.phpunit.de:443'失败:操作超时))
安装 PHPUnit_Selenium 需要做什么?
【问题讨论】:
-
您可能还需要确保您具有适当的访问权限(Windows 上的管理员,带有 *nix 的 sudo)。确保网络已连接。此外,使用 --all-deps 包含其他依赖项,以防您遗漏某些内容。