note 94605 added to pdo.installation
| From: | gerrywastaken at osu1 dot php dot net | Date: | Fri, 13 Nov 2009 20:13:03 +0000 |
| Subject: | note 94605 added to pdo.installation | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-162880@lists.php.net to get a copy of this message | ||
This page states
"You may need to enable the PDO driver for your database of choice; consult the documentation
for [database-specific PDO drivers] to find out more about that."
With the term "database-specific PDO drivers" being a link to this information. However
you will no find this information on that or any of the pages that it in turn links to.
The appropriate config options seems to be only available by running ./config --help from the source
directory after running autoconf.
Here is the related output from running that command:
=====================
--with-pdo-dblib[=DIR] PDO: DBLIB-DB support. DIR is the FreeTDS home directory
--with-pdo-firebird[=DIR] PDO: Firebird support. DIR is the Firebird base
install directory [/opt/firebird]
--with-pdo-mysql[=DIR] PDO: MySQL support. DIR is the MySQL base directoy
If mysqlnd is passed as DIR, the MySQL native
native driver will be used [/usr/local]
--with-zlib-dir[=DIR] PDO_MySQL: Set the path to libz install prefix
--with-pdo-oci[=DIR] PDO: Oracle OCI support. DIR defaults to $ORACLE_HOME.
Use --with-pdo-oci=instantclient,prefix,version
for an Oracle Instant Client SDK.
For Linux with 10.2.0.3 RPMs (for example) use:
--with-pdo-oci=instantclient,/usr,10.2.0.3
--with-pdo-odbc=flavour,dir
PDO: Support for 'flavour' ODBC driver.
include and lib dirs are looked for under 'dir'.
'flavour' can be one of: ibm-db2, iODBC, unixODBC, generic
If ',dir' part is omitted, default for the flavour
you have selected will used. e.g.:
--with-pdo-odbc=unixODBC
will check for unixODBC under /usr/local. You may attempt
to use an otherwise unsupported driver using the "generic"
flavour. The syntax for generic ODBC support is:
--with-pdo-odbc=generic,dir,libname,ldflags,cflags
When build as shared the extension filename is always pdo_odbc.so
--with-pdo-pgsql[=DIR] PDO: PostgreSQL support. DIR is the PostgreSQL base
install directory or the path to pg_config
--without-pdo-sqlite[=DIR]
PDO: sqlite 3 support. DIR is the sqlite base
install directory [BUNDLED]
=====================
So if you wish for instance to install the PostgreSQL PDO driver, then you should add the
--with-pdo-pgsql config option before compiling PHP. I may have made mistakes in my explination,
however it appears to work and was my best guess given the absence of the mentioned documentation.
----
Server IP: 69.147.83.197
Probable Submitter: 124.169.21.171
----
Manual Page -- http://www.php.net/manual/en/pdo.installation.php
Edit -- https://master.php.net/note/edit/94605
Del: integrated -- https://master.php.net/note/delete/94605/integrated
Del: useless -- https://master.php.net/note/delete/94605/useless
Del: bad code -- https://master.php.net/note/delete/94605/bad+code
Del: spam -- https://master.php.net/note/delete/94605/spam
Del: non-english -- https://master.php.net/note/delete/94605/non-english
Del: in docs -- https://master.php.net/note/delete/94605/in+docs
Del: other reasons-- https://master.php.net/note/delete/94605
Reject -- https://master.php.net/note/reject/94605
Search -- https://master.php.net/manage/user-notes.php