mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-28 23:08:55 +00:00

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343278 c90b9560-bf6c-de11-be94-00142212c4b1
81 lines
2.6 KiB
XML
81 lines
2.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<section xml:id="ref.pdo-odbc.installation" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
&reftitle.install;
|
|
<procedure xml:id="ref.pdo-odbc.install.unix">
|
|
<title>PDO_ODBC on UNIX systems</title>
|
|
<step>
|
|
<para>
|
|
As of PHP 5.1, PDO_ODBC is included in the PHP source. You can compile the
|
|
PDO_ODBC extension as either a static or shared module using the following
|
|
<command>configure</command> commands.
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term>ibm_db2</term>
|
|
<listitem>
|
|
<para>
|
|
<screen><![CDATA[
|
|
./configure --with-pdo-odbc=ibm-db2,/opt/IBM/db2/V8.1/
|
|
]]></screen>
|
|
To build PDO_ODBC with the ibm-db2 flavour, you have to have
|
|
previously installed the DB2 application development headers on the
|
|
same machine on which you are compiling PDO_ODBC. The DB2 application
|
|
development headers are an installable option in the DB2 servers, and
|
|
are also available as part of the DB2 Application Development Client
|
|
freely available for download from the IBM developerWorks
|
|
<link xlink:href="&url.ibm.db2.client;">website</link>.
|
|
</para>
|
|
<para>
|
|
If you do not supply a location for the DB2 libraries and headers to
|
|
the <command>configure</command> command, PDO_ODBC defaults to
|
|
<filename class="directory">/home/db2inst1/sqllib</filename>.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term>unixODBC</term>
|
|
<listitem>
|
|
<para>
|
|
<screen><![CDATA[
|
|
./configure --with-pdo-odbc=unixODBC,/usr/local
|
|
]]></screen>
|
|
If you do not supply a location for the unixODBC libraries and
|
|
headers to the <command>configure</command> command, PDO_ODBC
|
|
defaults to <filename class="directory">/usr/local</filename>.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term>generic</term>
|
|
<listitem>
|
|
<screen><![CDATA[
|
|
./configure --with-pdo-odbc=generic,/usr/local,libname,ldflags,cflags
|
|
]]></screen>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</para>
|
|
</step>
|
|
</procedure>
|
|
</section>
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|