Re: Error using PEAR on Mac OS X

From: Date: Tue, 15 Mar 2005 21:51:33 +0000
Subject: Re: Error using PEAR on Mac OS X
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-18075@lists.php.net to get a copy of this message
On Tue, 15 Mar 2005 12:58:58 -0500, Markus Arike <marike1@optonline.net> wrote: > I have been trying in vain to get PEAR to work on my Mac for weeks. If I > try to query a MySQL database for example I'll get this error: Fatal error: > Class 'PEAR' not found in /System/Library/PHP/DB/common.php on line 48 > > I assume my include_path is correct as I no longer get the error during PEAR > install that states WARNING! The include_path defined in the currently used > php.ini does not contain the PEAR PHP directory you just specified: etc. > > If I try to use, for example, $db = DB::connect('mysql://etc'); I get a > error 'Call to an undefined function'. It is driving my nuts because I > really would like to use PEAR's DB class for several web projects. > > The only thing I can think of is maybe it is a problem with permissions. > The file permissions of the PEAR directory are root & wheel. Don't see > anything in the install documentation about permission however. > > Maybe those who have successfully set up PEAR on Mac OS X can shed some > light on what the problem is. Thanks in advance for any assistance you can > offer! > If you do a simple: require_once('DB.php'); does it work? -- Justin Patrin

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