我试图pear通过使用此命令告诉在哪里找到PHPUnit:
sudo pear channel-discover pear.phpunit.de
Run Code Online (Sandbox Code Playgroud)
输出是:
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
)))
Run Code Online (Sandbox Code Playgroud)
我尝试了以下命令:
sudo pear channel-update pear.php.net
sudo pear upgrade-all
Run Code Online (Sandbox Code Playgroud)
然后我channel-discover再次运行命令.我得到了如上所示的相同错误.
我甚至试过这些命令:
sudo pear config-set auto_discover 1
Run Code Online (Sandbox Code Playgroud)
输出:
config-set succeeded
Run Code Online (Sandbox Code Playgroud)
然后我尝试了这个命令:
sudo pear install pear.phpunit.de/PHPUnit
Run Code Online (Sandbox Code Playgroud)
输出:
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
Run Code Online (Sandbox Code Playgroud)
所以我访问了这个链接: https://pear.phpunit.de/channel.xml它显示410 gone错误.还有其他替代方法吗?
Snr*_*oki 17
你不能再使用pear安装phpunit了:https: //github.com/sebastianbergmann/phpunit/wiki/End-of-Life-for-PEAR-Installation-Method
但您仍然可以使用phar文件安装它:https://phpunit.de/getting-started.html
或者使用作曲家:https: //phpunit.de/manual/current/en/installation.html#installation.composer
| 归档时间: |
|
| 查看次数: |
14758 次 |
| 最近记录: |