Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

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:

pear install phpunit/PHPUnit

pear install --alldeps phpunit/PHPUnit

pear install --onlyreqdeps phpunit/PHPUnit

it fails, giving me following error:

No releases available for package "pear.phpunit.de/PHPUnit"

install failed

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.

EDIT:

I've also tried to change prefered_state to beta; didn't help.

I've also tried to get list of all available packages:

pear remote-list -c phpunit

It gives me another error:

Cannot download non-http URL "/c/categories.xml"

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
226 views
Welcome To Ask or Share your Answers For Others

1 Answer

I had the same problem, try:

pear clear-cache

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...