This is a discussion on php + db2 within the PHP General forums, part of the PHP Programming Forums category; Hi I'm trying to install php-5.2.1 using ibm-db2. I made this a couple times already ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi
I'm trying to install php-5.2.1 using ibm-db2. I made this a couple times already without any problem, but in this concrete machine I cannot pass the configure script... My problem is with the db2 enviroment. Before issuing configure with all the options, I sourced the db2profile file as always, I checked and I have the enviromental variables: # env | grep -i db2 DB2INSTANCE=db2inst2 LD_LIBRARY_PATH=/home/db2inst2/sqllib/lib LIBPATH=/home/db2inst2/sqllib/lib PATH=/usr/sbin:/bin:/usr/bin:/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/home/db2inst2/sqllib/bin:/home/db2inst2/sqllib/adm:/home/db2inst2/sqllib/misc VWSPATH=/home/db2inst2/sqllib CLASSPATH=/home/db2inst2/sqllib/java/db2java.zip:/home/db2inst2/sqllib/java/db2jcc.jar:/home/db2inst2/sqllib/java/sqlj.zip:/home/db2inst2/sqllib/function:/home/db2inst2/sqllib/java/db2jcc_license_cisuz.jar:/home/db2inst2/sqllib/java/db2jcc_license_cu.jar:. but after this, when I issue the configure command I still get .... 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 can anybody help me here please? TIA! |
|
|||
|
Ok, I've seen something... I'm trying to compile php with db2 support but
also with oracle support using oracle-instantclient. If I remove the oracle options (with-oci8 and with-pdo-oci), configure passes the ibm-db2 tests, but using oracle-instantclient + db2 seems to be problematic... Anybody? ---------- Forwarded message ---------- From: Javier Ruiz <jruizmail@gmail.com> Date: Apr 26, 2007 10:39 AM Subject: php + db2 To: php-general@lists.php.net Hi I'm trying to install php-5.2.1 using ibm-db2. I made this a couple times already without any problem, but in this concrete machine I cannot pass the configure script... My problem is with the db2 enviroment. Before issuing configure with all the options, I sourced the db2profile file as always, I checked and I have the enviromental variables: # env | grep -i db2 DB2INSTANCE=db2inst2 LD_LIBRARY_PATH=/home/db2inst2/sqllib/lib LIBPATH=/home/db2inst2/sqllib/lib PATH=/usr/sbin:/bin:/usr/bin:/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/home/db2inst2/sqllib/bin:/home/db2inst2/sqllib/adm:/home/db2inst2/sqllib/misc VWSPATH=/home/db2inst2/sqllib CLASSPATH=/home/db2inst2/sqllib/java/db2java.zip:/home/db2inst2/sqllib/java/db2jcc.jar:/home/db2inst2/sqllib/java/sqlj.zip:/home/db2inst2/sqllib/function:/home/db2inst2/sqllib/java/db2jcc_license_cisuz.jar:/home/db2inst2/sqllib/java/db2jcc_license_cu.jar:. but after this, when I issue the configure command I still get .... 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 can anybody help me here please? TIA! |
|
|||
|
> build test failed. Please check the config.log for details.
> You need to source your DB2 environment before running PHP configure: > # . $IBM_DB2/db2profile so where is your db2profile? -- .~. Might. Courage. Vision. Sincerity. http://www.linux-sxs.org / v \ Simplicity is Beauty! May the Force and Farce be with you! /( _ )\ (Fedora Core 4) Linux 2.6.17-1.2142_FC4 ^ ^ 17:56:01 up 84 days 1:40 1 user load average: 0.00 0.00 0.00 |
|
|||
|
Man-wai Chang wrote:
>> build test failed. Please check the config.log for details. >> You need to source your DB2 environment before running PHP configure: >> # . $IBM_DB2/db2profile > > so where is your db2profile? > did you `export IBM_DB2=xxxxx`? -- .~. Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org / v \ Simplicity is Beauty! May the Force and Farce be with you! /( _ )\ (Ubuntu 6.10) Linux 2.6.20.7 ^ ^ 19:48:02 up 7 days 34 min 1 user load average: 3.57 3.86 3.34 news://news.3home.net news://news.hkpcug.org news://news.newsgroup.com.hk |
|
|||
|
On Thu, April 26, 2007 4:46 am, Javier Ruiz wrote:
> Ok, I've seen something... I'm trying to compile php with db2 support > but > also with oracle support using oracle-instantclient. > > If I remove the oracle options (with-oci8 and with-pdo-oci), configure > passes the ibm-db2 tests, but using oracle-instantclient + db2 seems > to be > problematic... Perhaps they both muck with PATH or something, and one or the other does it wrong and wipes out the other? That seems kinda unlikely, but you never know... The configure script itself may be messed up... If you compile WITH DB2, and then WITH Oracle, separately, and manage to keep/copy the .so files where they belong, you might get both to be extensions you can load with php.ini though. -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? |
![]() |
| Thread Tools | |
| Display Modes | |
|
|