473,425 Members | 1,892 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,425 software developers and data experts.

PEAR:DB Extension not found

I can't seem to get PEAR to work, but I think it's installed. Any
ideas?

phpinfo() says '--with-pear=/usr/local/apache/php-pear'

$ which pear
/usr/local/bin/pear
$ pear list
Installed packages:
===================
Package Version State
Archive_Tar 1.1 stable
Console_Getopt 1.2 stable
DB 1.7.6 stable
HTTP 1.2.2 stable
Mail 1.1.3 stable
Net_SMTP 1.2.3 stable
Net_Socket 1.0.1 stable
PEAR 1.3.2 stable
XML_Parser 1.0.1 stable
XML_RPC 1.1.0 stable
$ pear info db
About DB-1.7.6
==============
Provides Classes: DB, DB_common, DB_dbase, DB_fbsql,
DB_ibase, DB_ifx, DB_msql, DB_mssql, DB_mysql,
DB_mysqli, DB_oci8, DB_odbc, DB_pgsql,
DB_sybase, DB_storage, DB_sqlite
Package DB
Summary Database Abstraction Layer
Description DB is a database abstraction layer providing:
* an OO-style query API
* portability features that make programs
written for one DBMS work with other DBMS's
* a DSN (data source name) format for specifying
database servers
* prepare/execute (bind) emulation for databases
that don't support it natively
* a result object for each query response
* portable error codes
* sequence emulation
* sequential and non-sequential row fetching as
well as bulk fetching
* formats fetched rows as associative arrays,
ordered arrays or objects
* row limit support
* transactions support
* table information interface
* DocBook and phpDocumentor API documentation

DB layers itself on top of PHP's existing
database extensions.

Drivers for the following extensions pass
the complete test suite and provide
interchangeability when all of DB's
portability options are enabled:

fbsql, ibase, informix, msql, mssql,
mysql, mysqli, oci8, odbc, pgsql,
sqlite and sybase.

There is also a driver for the dbase
extension, but it can't be used
interchangeably because dbase doesn't
support many standard DBMS features.

DB is compatible with both PHP 4 and PHP 5.
Maintainers Stig Bakken <st**@php.net> (developer)
Tomas V.V.Cox <co*@idecnet.com> (developer)
Daniel Convissor <da*****@php.net> (lead)
Lukas Kahwe Smith <sm***@backendmedia.com>
(helper)
Version 1.7.6
Release Date 2005-04-11
Release License PHP License
Release State stable
Release Notes common:
* Fix the docblocks regarding
DB_FETCHMODE_FLIPPED. Bug 4027.

oic8:
* Provide BC hack for those connecting to oci8
using 'hostspec' instead of 'database'. Bug
4104.
Release Deps PHP >= 4.2.0
Package PEAR >= 1.0b1
Last Modified 2006-01-13
$ php josh_test.php // sample code
DB Error: extension not found
$

Jan 13 '06 #1
3 32393
On Fri, 13 Jan 2006 06:50:29 -0800, joshua.wehner wrote:
I can't seem to get PEAR to work, but I think it's installed. Any
ideas?


You forgot to set include_path in your php.ini
Here is what I have set it to:

include_path = ".:/usr/local/lib/php:/usr/local/PHP"

/usr/local/PHP contains 3rd party packages, like ADOdb and jpgraph,
while /usr/local/lib/php contains all of my PEAR treasures.
--
http://www.mgogala.com

Jan 13 '06 #2
Thanks for the suggestion.

Unfortunately, doesn't have any effect on the system; I still can't use
PEAR:DB in scripts ("extension not found").

It looks like there are two installations of PEAR on my system: one in
/usr/local/apache/php-pear and another in /usr/local/lib/php. Both of
them have a DB.php extension; setting either in my include_path doesn't
change things.

Jan 13 '06 #3
On Fri, 13 Jan 2006 10:31:31 -0800, joshua.wehner wrote:
Thanks for the suggestion.

Unfortunately, doesn't have any effect on the system; I still can't use
PEAR:DB in scripts ("extension not found").

It looks like there are two installations of PEAR on my system: one in
/usr/local/apache/php-pear and another in /usr/local/lib/php. Both of
them have a DB.php extension; setting either in my include_path doesn't
change things.


OK, what does phpinfo() say, where is Waldo? Which ini file is being used?

--
http://www.mgogala.com

Jan 13 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: kain | last post by:
hi there, I'm currently converting a MySQL application to PostgreSQL, and I hacked this app to support PEAR::Db . after some good coding days, I've found a problem: mysql_insert_id on pear::db ....
0
by: Analysis&Solutions | last post by:
Greetings: Crack open the beer, PEAR DB 1.6.0 is here! (Hey, I'm a bit giddy with excitement that my intense work during the past seven weeks has come to fruition.) For those unfamiliar with...
3
by: Wayne Smallman | last post by:
Hi! I've had a look through various forums for some advice on getting Pear DB working with my Entropy installation of PHP Version 4.3.6 Most of the topics I found are after the fact, so that's...
1
by: James | last post by:
Hey everyone, I have a really obscure but impassable problem with a reasonably simple piece of php/PEAR DB/MySQL code When calling several stored procs the first call succeeds, but subsequent...
8
by: lawrence k | last post by:
I wrote a simple CMS for personal use. I'm thinking of using it for other clients now. It's use of the database is slow and inefficient. I'm thinking of switching to the PEAR class listed here: ...
1
by: Paul | last post by:
I recently upgraded from MySQL 3.23 to 4.1. Now db is not working properly. I'd very much like your help in solving this issue! Here's the code I used to test it: require_once 'DB.php'; $db...
3
by: mpar612 | last post by:
I am stumped. Below is my code and it doesn't work (I removed the $login info for posting). PHP Code: require 'PEAR/DB.php'; // Connect to the database $db = DB::connect($login); if...
5
by: jmark | last post by:
I need some assistance on how to create a select statement using PEAR DB or MySQL with the LIKE function. That is I am looking of how I can get statement like this work. SELECT * FROM customer...
2
by: daralthus | last post by:
Hello! I would like to ask your help, i have founded a great code here: http://www.jamescaws.co.uk/2008/07/dynamically-count-exit-link-clicks-throughs-using-javascript-php/ but it uses Pear DB...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.