Re: Re: Basic Install issue - Missing PEAR class?

From: Date: Thu, 27 Oct 2005 03:43:36 +0000
Subject: Re: Re: Basic Install issue - Missing PEAR class?
References: 1 2 3 4  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-21664@lists.php.net to get a copy of this message
Hi, This enough info (below)? Thanks, Paul CONFIGURATION (CHANNEL PEAR.PHP.NET): =====================================
Auto-discover new Channels     auto_discover    <not set>
Default Channel                default_channel  pear.php.net
HTTP Proxy Server Address      http_proxy       <not set>
PEAR server [DEPRECATED]       master_server    pear.php.net
Default Channel Mirror         preferred_mirror pear.php.net
Remote Configuration File      remote_config    <not set>
PEAR executables directory     bin_dir          C:\wamp\php
PEAR documentation directory   doc_dir          C:\wamp\php\pear\docs
PHP extension directory        ext_dir          C:\php5
PEAR directory                 php_dir          C:\wamp\php\pear
PEAR Installer cache directory cache_dir        C:\DOCUME~1\ADMINI~1\LOCALS~1\Te
mp\pear\cache
PEAR data directory            data_dir         C:\wamp\php\pear\data
PHP CLI/CGI binary             php_bin          C:\wamp\php\php.exe
PEAR test directory            test_dir         C:\wamp\php\pear\tests
Cache TimeToLive               cache_ttl        3600
Preferred Package State        preferred_state  stable
Unix file mask                 umask            0
Debug Log Level                verbose          1
PEAR password (for             password         <not set>
maintainers)
Signature Handling Program     sig_bin          c:\gnupg\gpg.exe
Signature Key Directory        sig_keydir       C:\WINDOWS\pearkeys
Signature Key Id               sig_keyid        <not set>
Package Signature Type         sig_type         gpg
PEAR username (for             username         <not set>
maintainers)
User Configuration File        Filename         C:\WINDOWS\pear.ini
System Configuration File      Filename         C:\WINDOWS\pearsys.ini
C:\wamp\php> Justin Patrin wrote:
On 10/26/05, Paul Fitzpatrick <paulfitz@internode.on.net> wrote:
Hi, Thanks for the tip Greg. Upon a fresh install the same problem is occurring but affecting the pear/registry.php file. It is absolutely path related. I had to change the registry.php file line 26 to - require_once 'PEAR/PEAR.php'; When I do that I can run scripts but THEN when I try to use the pear package manager by command line it doesn't work. I have to change that line back to require_once 'PEAR.php'; To get the command line aspects of pear working. Its prety bizaare. This is a default installation of the latest version using go-pear.php. I suppose thats good enough if I can get the live server version going without having to change that line everytime I run something/add more packages to pear.
Don't alter the require_once paths. Just set your include_path correctly. Run phpinfo() in a script on your website and see what the include_path is. Then check where the php.ini is and go edit that one to fix the path.
Also another basic newby question - I am getting the config info displaying on every page, where is the flag to turn it off?
What config info?
Greg Beaver wrote:
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
     
-- PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
-- Justin Patrin


« previous php.pear.general (#21664) next »