Am Freitag 07 März 2008 03:05:31 schrieb Dan Lipsitt: > Hi, > > I've installed ezComponents on Fedora 8 using PEAR. > > I'm including the bootstrap file like this: > > <?php > require_once 'ezc/Base/ezc_bootstrap.php'; > ?> > > When I try to instantiate any component, I get this error: > > PHP Fatal error: Class 'ezcBaseRepositoryDirectory' not found in > /usr/share/pear/ezc/Base/base.php on line 440 > > I was able to get rid of this error by adding some more requires: > > <?php > require_once 'ezc/Base/struct.php'; > require_once 'ezc/Base/structs/repository_directory.php'; > require_once 'ezc/Base/ezc_bootstrap.php'; > ?> > > But then I still get "PHP Fatal error: Class 'ezcMailImapTransport' not > found." > > Any idea what's going wrong? > > Thanks, > Dan
Dear Dan, I'm sorry, but I can't reproduce your error. The following code works fine for me and with the most recent ezc via pear: #!/usr/bin/env php5 <?php echo 'PHP Version: '.phpversion()."\n"; require_once 'ezc/Base/ezc_bootstrap.php'; var_dump( class_exists( 'ezcBaseRepositoryDirectory' ) ); var_dump( class_exists( 'ezcMailImapTransport' ) ); output: PHP Version: 5.2.5-2 bool(true) bool(true) Could you please your environment against the requirements at http://ezcomponents.org/overview/requirements If you still encounter problems please post the output of phpinfo() on your development system. Dan is a Romanian name. Esti din Romania? Best regards, -- Thomas Koch, Software Developer Young Media Concepts GmbH Sonnenstr. 4 CH-8280 Kreuzlingen Switzerland Tel +41 (0)71 / 560 53 81 Fax +41 (0)71 / 560 53 89 Mobile +49 (0)170 / 753 89 16 Web www.ymc.ch -- Components mailing list [email protected] http://lists.ez.no/mailman/listinfo/components
