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
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
Jeremy,
I have the exact same set-up on my pc environment...
Win 7, 32 bit xampp-win32-1.7.4-VC6
what version pear is installed on you system...type " pear info pear " (without quotes).
You need version 1.9.1 at least. If not type " pear upgrade pear "
Tip - open cmd open as administrator - it makes a huge difference
also try " pear remote-list -c phpunit " to discover packages you have in phpunit
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
Try:
pear install --force pear
pear channel-discover pear.phpunit.de
pear install --force --alldeps phpunit/PHPUnit
Post a comment if it doesn't work and I'll investigate further
Pear update Problems?
To update your PEAR installation, request http://pear.php.net/go-pear.phar in your browser and save the output to a local file go-pear.php
. You can then run
php go-pear.php
If that doesn't work start the shell with admin privileges (rightclick -> run as admin).
Reponse to the comment:
If pear tells you that it doesn't know about a channel like pear.symfony-project.com
you need to run:
pear channel-discover pear.symfony-project.com
Go to C:\\Users\\nameuser\\AppData\\Local\\Temp\\pear\\cache
, where nameuser
is your Windows username.
In this folder, delete all temporary lines and then try to update with the above steps.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.