2010-03-28 22:10:10 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2009-07-11 08:37:21 +00:00
|
|
|
<!-- $Revision$ -->
|
2007-06-20 22:25:43 +00:00
|
|
|
<section xml:id="ref.pdo-odbc.installation" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
2005-09-26 21:15:29 +00:00
|
|
|
&reftitle.install;
|
2007-06-20 22:25:43 +00:00
|
|
|
<procedure xml:id="ref.pdo-odbc.install.unix">
|
2005-09-26 21:15:29 +00:00
|
|
|
<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[
|
2006-04-12 18:19:41 +00:00
|
|
|
./configure --with-pdo-odbc=ibm-db2,/opt/IBM/db2/V8.1/
|
2005-09-26 21:15:29 +00:00
|
|
|
]]></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
|
2017-10-21 19:27:59 +00:00
|
|
|
freely available for download from the IBM developerWorks
|
|
|
|
<link xlink:href="&url.ibm.db2.client;">website</link>.
|
2005-09-26 21:15:29 +00:00
|
|
|
</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[
|
2006-04-12 18:19:41 +00:00
|
|
|
./configure --with-pdo-odbc=unixODBC,/usr/local
|
2005-09-26 21:15:29 +00:00
|
|
|
]]></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[
|
2006-04-12 18:19:41 +00:00
|
|
|
./configure --with-pdo-odbc=generic,/usr/local,libname,ldflags,cflags
|
2005-09-26 21:15:29 +00:00
|
|
|
]]></screen>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</para>
|
|
|
|
</step>
|
|
|
|
</procedure>
|
|
|
|
</section>
|
2005-09-27 15:24:41 +00:00
|
|
|
|
|
|
|
<!-- 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
|
2009-09-25 07:04:39 +00:00
|
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
2005-09-27 15:24:41 +00:00
|
|
|
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
|
|
|
|
-->
|