1

I'm trying to install PHPunit through pear using xampp. I'm getting the following error when I give pear channel-discover components.ez.no

C:\xampp\php>pear channel-discover components.ez.no Discovery of channel "components.ez.no" failed (channel-add: Cannot open "http:/ /components.ez.no/channel.xml" (Connection to `components.ez.no:80' failed: No connection could be made because the target machine actively refused it. ))

please help me in this. what could be the problem?

Thank you

Tom
  • 411
  • 12
  • 28

2 Answers2

1

From what I can tell, that site has been up and down over the last few weeks. Try going to http://components.ez.no/channel.xml in your browser and if it shows the XML, then trying running the command.

If that doesn't work, try updating PEAR.

Jeremy Harris
  • 24,318
  • 13
  • 79
  • 133
  • i updated pear, and now i'm getting another error along with it. And i'm getting this for not just pear channel-discover components.ez.no but also for pear channel-discover pear.symfony-project.com & pear channel-discover pear.phpunit.de . – Tom Feb 09 '12 at 08:35
  • the error i get is:C:\xampp\php>pear channel-discover components.ez.no Discovering channel components.ez.no over http:// failed with message: channel-a dd: Cannot open "http://components.ez.no/channel.xml" (Connection to `components .ez.no:80' failed: No connection could be made because the target machine actively refused it.) – Tom Feb 09 '12 at 08:39
  • Trying to discover channel components.ez.no over https:// instead Discovery of channel "components.ez.no" failed (channel-add: Cannot open "https://components.ez.no/channel.xml" (Connection to `components.ez.no:443' failed: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?)) – Tom Feb 09 '12 at 08:42
0

I'm just over this error about components.ez.no being down and discovered that there's a workaround:

You should download EZ Components package from http://ezcomponents.org/download and extract those to php\pear\ezc

Then, use official website for PEAR package of PHPUnit and get Skeleton_Generator package open to find: phpunit-skelgen.bat phpunit-skelgen.php

Extract these to php/ (you should already have phpunit.bat / phpunit file there)

I hope I could be of any help. Good luck!

jakubplus
  • 307
  • 4
  • 17