Php – Unable to install PHPUnit pear package in XAMPP

pearPHPphpunitwindows 7xampp

Here is my problem. I already asked that question in the XAMPP community forum
but no reply. Maybe some of you can help.

I am running XAMPP with the following config

  • Win 7, 32 bit
  • xampp-win32-1.7.4-VC6

I want to update PHPUnit via pear that I can use it for Selenium Testing

First, add I the Channel

pear channel-discover pear.phpunit.de

Then I install package

pear install phpunit/PHPUnit

Right here I get always the same error message …

Warning: file_exists (): Unable to find the wrapper "channel" - did you forget to
enable it when you configured PHP? in PEAR \ Downloader \ Package.php on line 1416

Warning: is_file (): Unable to find the wrapper "channel" - did you forget to ena
ble it when you configured PHP? in PEAR \ Downloader \ Package.php on line 1425

Warning: is_file (): Unable to find the wrapper "channel" - did you forget to ena
ble it when you configured PHP? in PEAR \ Downloader \ Package.php on line 1425

I even tried to reinstall xampp completely, which didn't helped.

I also did an

pear install phpunit/PHPUnit

Didn't changed a thing.

Can this be due to an firefall setting?

I hope somebody can help me with this problem.

Best regards

Jeremy

Best Answer

Jeremy,

I have the exact same set-up on my pc environment...

Win 7, 32 bit xampp-win32-1.7.4-VC6

  1. what version pear is installed on you system...type " pear info pear " (without quotes).

  2. You need version 1.9.1 at least. If not type " pear upgrade pear "

  3. Tip - open cmd open as administrator - it makes a huge difference

  4. also try " pear remote-list -c phpunit " to discover packages you have in phpunit

  5. and either " pear install phpunit/the_package_name "

It worked for me - I hope this helps...There are other ways but I find this the most effective way with xampp 1.7.4 in windows 7

Related Topic