Problèmes lors de l'installation de pear.phpunit.de/PHPUnit
Je suis en train de dire pear
que où trouver PHPUnit par l'utilisation de cette commande:
sudo pear channel-discover pear.phpunit.de
La sortie a été:
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
)))
J'ai essayé les commandes suivantes:
sudo pear channel-update pear.php.net
sudo pear upgrade-all
Ensuite, j'ai couru channel-discover
commande de nouveau. J'ai eu la même erreur, comme indiqué ci-dessus.
J'ai même essayé ces commandes:
sudo pear config-set auto_discover 1
De sortie:
config-set succeeded
Ensuite, j'ai essayé cette commande:
sudo pear install pear.phpunit.de/PHPUnit
De sortie:
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
J'ai donc visité ce lien: https://pear.phpunit.de/channel.xml
et il affiche 410 gone
erreur. Est-il un autre moyen pour ce faire?
source d'informationauteur Ajay Kulkarni
Vous devez vous connecter pour publier un commentaire.
Vous ne pouvez pas installer phpunit à l'aide de la poire:
https://github.com/sebastianbergmann/phpunit/wiki/End-of-Life-for-PEAR-Installation-Method
Mais vous pouvez toujours l'installer en utilisant le fichier phar:
https://phpunit.de/getting-started.html
Ou à l'aide du compositeur:
https://phpunit.de/manual/current/en/installation.html#installation.composer
La plupart des gens compositeur d'aujourd'hui. Mais puisque vous semblez être sur Ubuntu, vous pouvez toujours le faire:
Télécharger l'archive phar a fonctionné pour moi:
https://github.com/Mayflower/PHP_CodeBrowser
Pour ceux sur RHEL distributions (CentOS/Fedora/etc) et qui n'utilisent pas encore le compositeur, vous pouvez installer phpunit à l'aide de YUM: