From owner-freebsd-ports@FreeBSD.ORG Wed Sep 8 02:00:51 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BBE1F16A4F8 for ; Wed, 8 Sep 2004 02:00:50 +0000 (GMT) Received: from boromir.api-digital.com (boromir.apid.com [63.238.52.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 73D2743D1F for ; Wed, 8 Sep 2004 02:00:50 +0000 (GMT) (envelope-from scott@api-digital.com) Received: by boromir.api-digital.com (Postfix, from userid 1001) id 9AA7787FD0; Tue, 7 Sep 2004 21:00:47 -0500 (CDT) Date: Tue, 7 Sep 2004 21:00:47 -0500 From: Scott Pell To: ports@freebsd.org Message-ID: <20040908020047.GA28228@apid.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i cc: steve@havk.org Subject: Pear-DB issues X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Sep 2004 02:00:51 -0000 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 PEAR server master_server pear.php.net PEAR password (for password maintainers) Signature Handling Program sig_bin /usr/local/bin/gpg Signature Key Directory sig_keydir /usr/local/etc/pearkeys Signature Key Id sig_keyid Package Signature Type sig_type gpg PEAR username (for username maintainers) -- Scott Pell http://www.api-digital.com