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
>
> What am I doing wrong here?
First, you should make sure not to use the PHP ODBC driver. That driver has
a whole bunch of problems. There is a specific DB2 driver that fares much
better. Make sure that you use it.
Next, have you sourced the /home/db2inst1/sqllib/db2profile before running
the configure?
--
Knut Stolze
DB2 Information Integration Development
IBM Germany |