Pear-DB issues

Scott Pell scott at apid.com
Tue Sep 7 19:00:51 PDT 2004


Just build the latest port of pear-db in the ports collection and now all
apps using pear-db don't work.  Have tried on 4.9 and 4.10 FreeBSD builds,
same result.

Errors:

> php test.php
Standard Message: DB Error: extension not found
Standard Code: -25
DBMS/User Message: mysql://sasql:sa0sekrit@localhost/spamassassin
DBMS/Debug Message: mysql://sasql:sa0sekrit@localhost/spamassassin

Pear doesn't even get to the point where it tries to connect to the
database, it barfs when it loads up.

I have noticed that Pear (and PHP) install Pear under /usr/local/share/pear
but the pear config says otherwise.  I have tried changing the pear config
to point to /usr/local/share/pear same errors result.  

What am I missing? There is very little documentation, so any guidance would
be greatly appreciated.


PHP Extensions:

web1# ll /usr/local/lib/php/20020429/
total 1846
-r--r--r--  1 root  wheel    12563 Sep  7 17:44 gettext.so
-r--r--r--  1 root  wheel  1607689 Sep  7 17:45 mbstring.so
-r--r--r--  1 root  wheel     9704 Sep  7 17:44 mhash.so
-r--r--r--  1 root  wheel    64663 Sep  7 17:46 openssl.so
-r--r--r--  1 root  wheel    80950 Sep  7 17:43 pcre.so
-r--r--r--  1 root  wheel    46892 Sep  7 17:43 session.so
-r--r--r--  1 root  wheel    31277 Sep  7 17:43 xml.so

Related Packages installed:

pear-Archive_Tar-1.2
pear-Console_Getopt-1.2
pear-DB-1.6.5,1
pear-PEAR-1.3.1
pear-XML_RPC-1.1.0
php4-4.3.8_2
php4-gettext-4.3.8_2
php4-mbstring-4.3.8_2
php4-mhash-4.3.8_2
php4-openssl-4.3.8_2
php4-pcre-4.3.8_2
php4-pear-4.3.8_2
php4-session-4.3.8_2
php4-xml-4.3.8_2

Pear Config:

Configuration:
==============
PEAR executables directory     bin_dir         /usr/local/bin
PEAR documentation directory   doc_dir         /usr/local/lib/php/pear/docs
PHP extension directory        ext_dir         /usr/local/lib/php/20020429
PEAR directory                 php_dir         /usr/local/lib/php/pear
PEAR Installer cache directory cache_dir       /tmp/pear/cache
PEAR data directory            data_dir        /usr/local/lib/php/pear/data
PHP CLI/CGI binary             php_bin         /usr/local/bin/php
PEAR test directory            test_dir        /usr/local/lib/php/pear/tests
Cache TimeToLive               cache_ttl       3600
Preferred Package State        preferred_state stable
Unix file mask                 umask           22
Debug Log Level                verbose         1
HTTP Proxy Server Address      http_proxy      <not set>
PEAR server                    master_server   pear.php.net
PEAR password (for             password        <not set>
maintainers)
Signature Handling Program     sig_bin         /usr/local/bin/gpg
Signature Key Directory        sig_keydir      /usr/local/etc/pearkeys
Signature Key Id               sig_keyid       <not set>
Package Signature Type         sig_type        gpg
PEAR username (for             username        <not set>
maintainers)

-- 
Scott Pell
http://www.api-digital.com


More information about the freebsd-ports mailing list