PHP + DB2 + Linux
Posted: Tue Jul 06, 2010 8:15 am
I'm trying to enable the php extension to work with DB2 on Linux.
Performed the following procedures (based on the official manual):
I installed DB2Express V9.7
-sudo apt-get install libaio-dev
-sudo ./db2setup
I validated installation (success)
-/opt/ibm/db2/v9.7/bin# ./db2val
I changed the file php.ini:
-ibm_db2.instance_name=db2inst1
Some libs:
apt-get install libxml2 libxml2-dev
apt-get install php-pear php-dev
I downloaded the ibm_db2-1.8.4 in http://pecl.php.net/
in the directory ibm_db2-1.8.4, I issued the command:
-phpize
./configure --with-IBM_DB2=/opt/ibm/db2/V9.7
This last command (./configure) is returning the following error:
"checking for DB2 CLI include files in default path... checking in /opt/ibm/db2/V9.7/... not found
configure: error: Please reinstall the DB2 CLI distribution"
can someone help me?
PHP 5.3.2
Apache 2.2.1
DB2 Express 9.7
Ubuntu 10.04
Performed the following procedures (based on the official manual):
I installed DB2Express V9.7
-sudo apt-get install libaio-dev
-sudo ./db2setup
I validated installation (success)
-/opt/ibm/db2/v9.7/bin# ./db2val
I changed the file php.ini:
-ibm_db2.instance_name=db2inst1
Some libs:
apt-get install libxml2 libxml2-dev
apt-get install php-pear php-dev
I downloaded the ibm_db2-1.8.4 in http://pecl.php.net/
in the directory ibm_db2-1.8.4, I issued the command:
-phpize
./configure --with-IBM_DB2=/opt/ibm/db2/V9.7
This last command (./configure) is returning the following error:
"checking for DB2 CLI include files in default path... checking in /opt/ibm/db2/V9.7/... not found
configure: error: Please reinstall the DB2 CLI distribution"
can someone help me?
PHP 5.3.2
Apache 2.2.1
DB2 Express 9.7
Ubuntu 10.04