Re: pear db (installation?) problem

From: Date: Wed, 18 Dec 2002 19:46:56 +0000
Subject: Re: pear db (installation?) problem
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-3040@lists.php.net to get a copy of this message
Susie Black wrote:
Having installed Pear and the Pear DB package on Windows a number of times (using both go-pear and the pear batch file) I'm persistently getting this error.
I assume you also installed PEAR base class, since virtually every package is dependant on it.
"Debug Error: c:\php4\pear\DB\common.php line 29 - Class db_common: Cannot inherit from undefined class pear." on the line require_once("db.php");
I think this is because the PEAR.php file isn't available. You should check that is installed in c:\php4\pear\PEAR.php. You could try creating a test.php with "<?php require_once ('PEAR.php'); ?>" inside, to test if PEAR.php is avaible in your include path.
What's slightly more perplexing is that I installed to c:\php. I've made a complete copy of my php & pear directories to c:\php4 - and tried installing to that directory in the first place but predictably enough this makes no difference. The include path in my php.ini file reads include_path = ".;c:\php\pear"
I've got no experience with running pear or even php on windows, but if your pear install dir is c:\php4\pear, shouldn't this be in your include path, instead of c:\php\pear. In fact, I believe pear can be installed in every directory, not just inside the php dir, also for example in c:\path\to\other\dir\pear. Just set your include path to include this. greets, Stijn de Reede
The configuration, as set using pear.bat is
bin_dir         c:\php
doc_dir         c:\php4\do
ext_dir         c:\php\ext
master_server pear.php.n
password        <not set>
php_dir         c:\php4\pe
preferred_state stable
username        <not set>
verbose         1
and c:\php is in my environment path. Please could anyone tell me what I've done wrong or what else I need to do to make this work? Thanks is advance Susie


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