我试图用这个命令来告诉pear
是在哪里可以找到PHPUnit的:问题,而安装pear.phpunit.de/PHPUnit
sudo pear channel-discover pear.phpunit.de
产量为:
Discovering channel pear.phpunit.de over http:// failed with message: channel-add: Cannot open "http://pear.phpunit.de/channel.xml" (File http://pear.phpunit.de:80/channel.xml not valid (received: HTTP/1.1 410 Gone
))
Trying to discover channel pear.phpunit.de over https:// instead
Discovery of channel "pear.phpunit.de" failed (channel-add: Cannot open "https://pear.phpunit.de/channel.xml" (File https://pear.phpunit.de:443/channel.xml not valid (received: HTTP/1.1 410 Gone
)))
我试着以下命令:
sudo pear channel-update pear.php.net
sudo pear upgrade-all
然后我再次运行channel-discover
命令。如上所示,我得到了同样的错误。
我甚至尝试以下命令:
sudo pear config-set auto_discover 1
输出:
config-set succeeded
然后我尝试下面的命令:
sudo pear install pear.phpunit.de/PHPUnit
输出:
Attempting to discover channel "pear.phpunit.de"...
Attempting fallback to https instead of http on channel "pear.phpunit.de"...
unknown channel "pear.phpunit.de" in "pear.phpunit.de/PHPUnit"
invalid package name/package file "pear.phpunit.de/PHPUnit"
install failed
所以我VISI查看此链接:https://pear.phpunit.de/channel.xml
并显示410 gone
错误。有没有其他的替代方法来做到这一点?