Failed to install PHPUnit soil package in XAMPP

Here is my problem. I already asked this question on the XAMPP community forum but no answer. Some of you may be able to help.

I am running XAMPP with the following configuration

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

I want to update PHPUnit through a pear so that I can use it to test Selenium

First add i channel

pear channel-discover pear.phpunit.de

Then i install the package

pear install phpunit / PHPUnit

Right here I always get 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 installing xampp completely, which didn't help.

I also did

pear install phpunit/PHPUnit

Nothing changed.

Is this possible due to the installation of a fire?

I hope someone can help me with this problem.

Regards

Jeremiah

+3
source
3

,

...

Win 7, 32 XAMPP-win32-1.7.4-VC6

  • ​​ ... " info pear" ( ).

  • 1.9.1. " "

  • - cmd -

  • "pear remote-list -c phpunit", , phpunit

  • "pear install phpunit/the_package_name"

- , ... , xampp 1.7.4 Windows 7

+6

Try:

pear install --force pear
pear channel-discover pear.phpunit.de
pear install --force --alldeps phpunit/PHPUnit

, ,

Pear?

PEAR, http://pear.php.net/go-pear.phar go-pear.php.

php go-pear.php

, (rightclick → run as admin).

:

, pear.symfony-project.com, :

pear channel-discover pear.symfony-project.com
+5

Go to C:\Users\nameuser\AppData\Local\Temp\pear\cachewhere nameuseris your Windows username.

In this folder, delete all temporary lines, and then try to update using the above steps.

+2
source

Source: https://habr.com/ru/post/1795599/


All Articles