PEAR install trouble

From: Date: Sun, 25 Aug 2002 14:08:57 +0000
Subject: PEAR install trouble
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-2187@lists.php.net to get a copy of this message
Hi, I'm having trouble getting PEAR working. I'm running OpenBSD 3.1 and I have two installs of PHP: 4.1.2 Apache dynamic module (version from OpenBSD 3.1 ports) and 4.3.0-cvs CLI version (not installed to Apache). Both are working just fine for everything I've tried. go-pear worked fine. If I try to use any PEAR function in either environment, it just complains that it's an unknown class, i.e. like pear just isn't there. e.g.: $rfc822 = new Mail_RFC822($address,'',TRUE); gives: Fatal error: Cannot instantiate non-existent class: mail_rfc822 in /var/www/htdocs/test.php on line 4 and something similar from a CLI app. Here's my pear configuration: CONFIGURATION: ============== +---------------------+-----------------+-------------------------------- | PEAR executables | bin_dir | /usr/local/bin | directory | | | PEAR documentation | doc_dir | /usr/local/lib/php/docs | directory | | | PHP extension | ext_dir | /usr/local/lib/php/extensions/no-de | | directory | | bug-non-zts-20020429 | PEAR directory | php_dir | /usr/local/lib/php | PEAR data directory | data_dir | /usr/local/lib/php/data | PEAR test directory | test_dir | /usr/local/lib/php/tests | HTTP Proxy Server | http_proxy | <not set> | Address | | | PEAR server | master_server | pear.php.net | PEAR password (for | password | <not set> | maintainers) | | | PEAR username (for | username | <not set> | maintainers) | | | Preferred Package | preferred_state | stable | State | | | Unix file mask | umask | 18 | Debug Log Level | verbose | 1 +---------------------+-----------------+-------------------------------- If I try and install new PEAR modules, I get this: $pear install http://pear.php.net/get/imagick downloading imagick-0.1.1.tgz ... ...done: 12,590 bytes 5 source files, building running: phpize PHP Api Version : 20020307 Zend Module Api No : 20020429 Zend Extension Api No : 20020731 ImageMagick library install dir? [autodetect] : building in /var/tmp/pear-build-admin/imagick-0.1.1 running: /tmp/pearn15191/imagick-0.1.1/configure --with-imagick running: make Warning: opendir("modules") - No such file or directory in Builder.php on line 158 no `modules' directory found I have no idea where the ImageMagick library install dir might be, so I left it to autodetect. Do I need to amend my include path or something?

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