View Single Post

   
  #8 (permalink)  
Old 02-27-2008, 09:17 AM
Ian
 
Posts: n/a
Default Re: configure PHP with IBM-DB2

Brent Halsey wrote:
> Hi All,
>
> I am trying to configure php with IBM-DB2 and I get the following
> error:
>
> checking for IBM DB2 support... no
> configure: error:
> build test failed. Please check the config.log for details.
> You need to source your DB2 environment before running PHP configure:
> # . $IBM_DB2/db2profile
>
> The command I use to configure is # ./configure
> --with-mysql=/srv/mysql/mysql-standard-5.0.24a-linux-i686-glibc23
> --with-apxs2=/srv/apache-2058/apache/bin/apxs
> --with-ibm-db2=/opt/IBM/db2/V8.1
> --with-pdo-odbc=ibm-db2,/home/db2inst1/sqllib
>


FYI, you probably want to use the ibm_db2 PECL module instead of the
bundled module -- it's written by IBM and doesn't use the unified ODBC
drivers.

Plus it's a lot easier to install it using pear.

http://pecl.php.net/package/ibm_db2/

Reply With Quote