Home > Archive > PHP Pear > October 2005 > Basic Install issue - Missing PEAR class?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Basic Install issue - Missing PEAR class?
|
|
| Paul Fitzpatrick 2005-10-26, 9:56 pm |
|
Hi,
I have a minor pathing problem which is preventing me from using PEAR,
hopefully somone will have an idea as to where I went wrong. :)
I Installed using go-pear.php on a windows box via the command line.
Everything seemed to work perfectly.
I installed into the wamp folder. (wamp is a apache/php/mysql package)
C:
\WAMP
\ PHP
\PEAR
I added the registry code (PEAR_ENV.reg) and also added the include path
to PHP -
*include_path = ".;C:\wamp\php\PEAR"*
Every script I run leads to the following error -
*" Fatal error: Class 'PEAR' not found in
**C:\wamp\php\PEAR\PEAR\Config.php on line **196 "*
I checked the config.php file and it has a require 'PEAR.php'; which
should be grabbing the pear class. The path is correct from the config
to the PEAR.php file (same directory).
Other files (info.php) have done the same thing as well. This is a
default pear installation, no paths were edited.
The class appears to be included in the config file, its just not seeing
it. do I need to move the config file, move the pear class?
Any suggestions greatly appreciated :)
Thanks,
Paul
| |
| Greg Beaver 2005-10-26, 9:56 pm |
| Paul Fitzpatrick wrote:
>
> Hi,
>
> I have a minor pathing problem which is preventing me from using PEAR,
> hopefully somone will have an idea as to where I went wrong. :)
>
> I Installed using go-pear.php on a windows box via the command line.
> Everything seemed to work perfectly.
>
> I installed into the wamp folder. (wamp is a apache/php/mysql package)
> C:
> \WAMP
> \ PHP
> \PEAR
>
> I added the registry code (PEAR_ENV.reg) and also added the include path
> to PHP -
> *include_path = ".;C:\wamp\php\PEAR"*
>
> Every script I run leads to the following error -
>
> *" Fatal error: Class 'PEAR' not found in
> **C:\wamp\php\PEAR\PEAR\Config.php on line **196 "*
> I checked the config.php file and it has a require 'PEAR.php'; which
> should be grabbing the pear class. The path is correct from the config
> to the PEAR.php file (same directory).
>
> Other files (info.php) have done the same thing as well. This is a
> default pear installation, no paths were edited.
>
> The class appears to be included in the config file, its just not seeing
> it. do I need to move the config file, move the pear class?
> Any suggestions greatly appreciated :)
Try adding:
var_dump(get_included_files());
right before line 196, and see if PEAR.php is being included from the
location you think it is.
I suspect that there is a file named "pear.php" somewhere in the current
directory that is being included instead of C:\wamp\php\PEAR\PEAR.php
Greg
|
|
|
|
|