When I run:
peardev install phpunit/PHPUnit
I get the following:
No releases available for package \"pear.phpunit.de/PHPUni
could not extract the package.xml file from "C:\Program Files\PHP\tmp\YAML-1.0.5
.tgz" Unable to create directory 'C:/Program/tmpFA83.tmp'
Unable to create path for C:/Program/tmpFA83.tmp/package.xml
This is a bug in pear installer. It can't deal with the SPACE in your path and tries to read the wrong files. Installing your php in a folder without a space is the only 'fix' i know about :/
Update 5:
pear install --force --alldeps pear/pear
do all channel updates it asks for
pear install --force --alldeps phpunit/PHPUnit
if asked for channel updates, do those and repeat
if the Pear
command didn't work try this:
First off I'm assuming xampp is installed to C:\xampp
make sure you're running command prompt as administrator and follow this
pear channel-discover pear.phpunit.de
pear channel-discover components.ez.no
pear channel-discover pear.symfony-project.com
pear install phpunit/PHPUnit
You have several PEAR versions installed and are executing the wrong one. See Pear on windows displaying different version numbers for how to fix it.
I'm a really newbie but hope to be of any help.
I just succeeded installing PHPUnit a moment ago.
My env. is Wamp2.1.
I don't know exactly how this works but it worked for me, so try this.
pear clear-cache
then,
pear install -a -f phpunit/PHPUnit
Somewhere in the failing message, I saw something about cache so I used clear-cache
.
It did some trick in installing process, I guess.
Good luck!
From the manual page
pear channel-discover pear.phpunit.de
pear channel-discover components.ez.no
pear channel-discover pear.symfony-project.com
pear install phpunit/PHPUnit
Make sure you have the two extra channels that are required.
Edit:
Try following this advice: pear update-channels