PEAR require_once error (Structures / Graph / Node.php): Could not open stream

I am trying to install PHPUnit using PEAR. Any team that I run like a pear install phpunit/PHPUnit, pear install Structures_Graph, pear upgrade, pear upgrade --force --alldeps..., it always ends in

Warning: require_once (Structures / Graph / Node.php): could not open the stream: there is no such file or directory in PEAR \ Structures \ Graph.php on line 37 PHP Warning: require_once (Structures / Graph / Node.php): failed open stream: there is no such file or directory in C: \ WAMP \ Bin \ PHP \ php5.3.4 \ PEAR \ PEAR \ Structures \ Graph.p hp on line 37

Warning: require_once (Structures / Graph / Node.php): could not open the stream: there is no such file or directory in C: \ WAMP \ Bin \ PHP \ php5.3.4 \ PEAR \ PEAR \ Structures \ Graph.php on line 37 PHP Fatal error: require_once (): opening failure required 'Structures / Graph / Node.php' (include_path = 'C: \ wamp \ bin \ php \ php5.3.4 \ pear') in C: \ wamp \ bin \ php \ php5 .3.4 \ PEAR \ PEAR \ Structures \ Graph.php on line 37

Fatal error: require_once (): Error opening 'Structures / Graph / Node.php' (include_path = 'C: \ wamp \ bin \ php \ php5.3.4 \ pear') in C: \ wamp \ bin \ php \ php5 .3.4 \ PEAR \ PEAR \ Structures \ Graph.php on line 37

I tried the answer to this question and downloaded and extracted the ZIP in C: \ wamp \ bin \ php \ php5.3.4 \ PEAR \ PEAR, but this only replaces the Structures_Graph error that I had previously encountered with this.

PEAR is installed with go-pear.bat on a wamp installation in Windows 7, PHP 5.3.4.

The more I can try to do this job?

Update: it should be said that I tried to change the include_path specified in the above error without success. I tried to change both php.iniand pear.bat.

+5
source share
5 answers

I found that the version of the pear ( go-pear.phar) that comes with wamp is mostly broken.

go-pear.phar .

+5

C:\wamp\bin\php\php5.3.4\PEAR\PEAR\

, , , ​​ fckd.

+1

, c:\wamp\bin\php\php5.3.5\PEAR\pear\PEAR \, Structures. c:\wamp\bin\php\php5.3.5\PEAR\pear\ ,

+1

. "PEAR/".

Graph.php

require_once 'PEAR/Structures/Graph/Node.php';

Node.php

require_once 'PEAR/Structures/Graph.php';

AcyclicTest.php

require_once 'PEAR/Structures/Graph.php';
require_once 'PEAR/Structures/Graph/Node.php';

TopologicalSorter.php

require_once 'PEAR/Structures/Graph.php';
require_once 'PEAR/Structures/Graph/Node.php';
require_once 'PEAR/Structures/Graph/Manipulator/AcyclicTest.php';
0
source

C:/wamp/bin/php/php5.3.8/PEAR/ you should go to the full path:

require_once 'C:/wamp/bin/php/php5.3.8/PEAR/PEAR/Structures/Graph.php'

Change it to

Graph.php

require_once 'C:/wamp/bin/php/php5.3.8/PEAR/PEAR/Structures/Graph/Node.php';
Node.php

require_once 'C:/wamp/bin/php/php5.3.8/PEAR/PEAR/Structures/Graph.php';
AcyclicTest.php

require_once 'C:/wamp/bin/php/php5.3.8/PEAR/PEAR/Structures/Graph.php';
require_once 'C:/wamp/bin/php/php5.3.8/PEAR/PEAR/Structures/Graph/Node.php';
TopologicalSorter.php

require_once 'C:/wamp/bin/php/php5.3.8/PEAR/PEAR/Structures/Graph.php';
require_once 'C:/wamp/bin/php/php5.3.8/PEAR/PEAR/Structures/Graph/Node.php';
require_once 'C:/wamp/bin/php/php5.3.8/PEAR/PEAR/Structures/Graph/Manipulator/AcyclicTest.php';

Pear not found path to Graph.php element.

0
source

All Articles