473,406 Members | 2,217 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

configure PHP with IBM-DB2

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?

Thanks,

Brent

Sep 21 '06 #1
7 7804
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
Sep 21 '06 #2
Perhaps this is part of my problem, what is meant by 'source' the
/home/db2inst1/sqllib/db2profile ?
Knut Stolze wrote:
Next, have you sourced the /home/db2inst1/sqllib/db2profile before running
the configure?
Sep 21 '06 #3
Brent Halsey wrote:
Perhaps this is part of my problem, what is meant by 'source' the
/home/db2inst1/sqllib/db2profile ?
Run this:

$ source /home/db2inst1/sqllib/db2profile

or

$ . /home/db2inst1/sqllib/db2profile

Note the dot '.' in front of the filename.

--
Knut Stolze
DB2 Information Integration Development
IBM Germany
Sep 21 '06 #4
I ran source /home/db2inst1/sqllib/db2profile and then tried to
conifgure again and it appears to be working, my box is pretty slow.
I'll try to do the make and make install and let you know how it goes.
What needs to be done to the php.ini file?
Thanks!

Sep 21 '06 #5
The php.ini file should have the following contents added after the
make install:

extension=ibm_db2.so
Brent Halsey wrote:
I ran source /home/db2inst1/sqllib/db2profile and then tried to
conifgure again and it appears to be working, my box is pretty slow.
I'll try to do the make and make install and let you know how it goes.
What needs to be done to the php.ini file?
Thanks!
Sep 21 '06 #6
Thank you for all of your help. Everything is working now =) Cheers!

Sep 21 '06 #7
Ian
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/

Sep 21 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Christopher De Vries | last post by:
The predominant operating system in my workplace is Solaris, with a bit of Linux and MacOS X thrown in. As such people expect to install new software with the sequence: ../configure make make...
18
by: perseus | last post by:
It is really crazy! I need to use the Boost filesystem for the manipulation of directories, and I have no idea how to install this filesystem on my IBM-compatible machine. Does anyone up here know...
23
by: Arapahoe | last post by:
When you really boil it down...in the last 60 years of computing...it's really all been IBM. I mean, I've been reading this book "Hackers" which goes through all the *underground* computer...
0
by: Markus Wollny | last post by:
Hello! When I try to run ./configure --with-java, it complains that ant doesn't work. However ant is installed, as is the latest Java SDK 1.4.2 from sun, PATH and JAVA_HOME are set correctly; ...
0
by: Samuel M. Smith | last post by:
I am trying to build python2.4.2 on an arm 9 running Debian 3 Sarge when I run ./configure it fails with ../configure checking MACHDEP... linux2 checking EXTRAPLATDIR... checking for...
1
by: Markus Wollny | last post by:
Hi! I am trying to build PostgreSQL 7.4.3 with Java enabled; I've got Apache Ant version 1.5 and j2sdk1.4.1_05 installed: Verifiying ant: # which javac /usr/java/j2sdk1.4.1_05/bin/javac #...
14
by: david | last post by:
I have developed web forms including login by using ASP.NET via HTTP. Now I want to secure the connection from client to the server via HTTPS. How can I configure the server or something else to...
0
by: Satish S Nandihalli | last post by:
following errors were found on executing configure file: 1) configure: WARNING: thread.h: present but cannot be compiled configure: WARNING: thread.h: check for missing prerequisite headers?...
1
by: Jim McCullars | last post by:
Greetings: Getting configure errors trying to build PHP 5.2.5 under Solaris 9. The configure command I use is this: ../configure --with-mysql --with-gd --with-jpeg-dir=/usr/local...
7
by: Mathieu Prevot | last post by:
Hi, I have the following error when I run configure: checking size of wchar_t... configure: error: cannot compute sizeof (wchar_t) what can I do ? Mathieu
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.