通过PEAR安装PHPUnit [英] Installing PHPUnit via PEAR
问题描述
我无法通过 PEAR 1.9.0 安装 PHPUnit 3.4.6 .找到频道 pear.phpunit.de 并尝试使用以下命令之一后:
I have problems installing PHPUnit 3.4.6 via PEAR 1.9.0. After I discover channel pear.phpunit.de and try to use one of following commands:
梨安装phpunit/PHPUnit
pear install phpunit/PHPUnit
梨安装--alldeps phpunit/PHPUnit
pear install --alldeps phpunit/PHPUnit
梨安装--onlyreqdeps phpunit/PHPUnit
pear install --onlyreqdeps phpunit/PHPUnit
它失败,给我以下错误:
it fails, giving me following error:
没有适用于软件包的版本 "pear.phpunit.de/PHPUnit"
No releases available for package "pear.phpunit.de/PHPUnit"
安装失败
我从遇到相同问题的人那里找到了几个线程,但是将PEAR升级到最新版本通常对他们有用.另外,似乎几乎没有用于安装Windows的PHPUnit的教程.
I found several threads from people with the same problem, but upgrading PEAR to the newest version usually worked for them. Also there seems to be close to no tutorials for installing PHPUnit for Windows.
我还试图将preferred_state更改为beta;没有帮助.
I've also tried to change prefered_state to beta; didn't help.
我还尝试获取所有可用软件包的列表:
I've also tried to get list of all available packages:
梨远程列表-c phpunit
pear remote-list -c phpunit
这给了我另一个错误:
无法下载非http网址"/c/categories.xml"
Cannot download non-http URL "/c/categories.xml"
推荐答案
昨天我遇到了同样的问题,并通过更新频道来解决了该问题
I had the same problem yesterday, and solved it by updating the channels
pear clear-cache
pear update-channels
在尝试安装phpUnit之前.
before trying to install phpUnit.
希望这会有所帮助.
这篇关于通过PEAR安装PHPUnit的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!