php + db2

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 ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-26-2007
Javier Ruiz
 
Posts: n/a
Default php + db2

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!

Reply With Quote
  #2 (permalink)  
Old 04-26-2007
Javier Ruiz
 
Posts: n/a
Default Fwd: php + db2

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!

Reply With Quote
  #3 (permalink)  
Old 04-26-2007
Man-wai Chang
 
Posts: n/a
Default Re: php + db2

> 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
Reply With Quote
  #4 (permalink)  
Old 04-26-2007
Man-wai Chang
 
Posts: n/a
Default Re: php + db2

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
Reply With Quote
  #5 (permalink)  
Old 04-27-2007
Richard Lynch
 
Posts: n/a
Default Re: [PHP] Fwd: php + db2

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?
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:30 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0