Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

issues in install phpunit - Attempting fallback to https instead of http on channel phpunit

Tags:

php

phpunit

xampp

I am getting this error while i try to install phpunit in xampp.

C:\xampp\php>pear install --alldeps phpunit/PHPUnit
Attempting to discover channel "phpunit"...
Attempting fallback to https instead of http on channel "phpunit"...
unknown channel "phpunit" in "phpunit/PHPUnit"
invalid package name/package file "phpunit/PHPUnit"
install failed
like image 420
pearlsoft Avatar asked Dec 29 '11 12:12

pearlsoft


1 Answers

You need to do a

pear channel-discover pear.phpunit.de

before issuing the install command.


Apart from that note that xampp usually ships with a old (broken) version of pear.

Please make sure you have the current version installed with pear version. It should say 1.9.4.

If not don't try to upgrade the pear that xampp ships. While it is possible with much effort it is a lot easier to install a clean, fresh pear instead of fixing the broken stuff.

See: Pear Installation

like image 125
edorian Avatar answered Oct 11 '22 02:10

edorian