Page 1 of 1

Compiling PHP 4.3.7 with Db2 8.1 Support!

Posted: Tue Jun 22, 2004 10:19 am
by d-m
Hi Guys!
Do U know if is missing a file at PHP in orther to compile it with db2 8.1 support?

I'm getting these error:

[root@ipanema php-4.3.7]# make
/bin/sh /usr/src/php-4.3.7/libtool --silent --preserve-dup-deps --mode=compile gcc -I/opt/IBM/db2/V8.1//include -Iext/odbc/ -I/usr/src/php-4.3.7/ext/odbc/ -DPHP_ATOM_INC -I/usr/src/php-4.3.7/include -I/usr/src/php-4.3.7/main -I/usr/src/php-4.3.7 -I/usr/src/php-4.3.7/Zend -I/usr/include/pgsql -I/usr/src/php-4.3.7/ext/xml/expat -I/usr/local/include -I/usr/src/php-4.3.7/TSRM -g -O2 -prefer-pic -c /usr/src/php-4.3.7/ext/odbc/php_odbc.c -o ext/odbc/php_odbc.lo
In file included from /usr/src/php-4.3.7/ext/odbc/php_odbc.c:37:
/usr/src/php-4.3.7/ext/odbc/php_odbc_includes.h:176:21: sqlcli1.h: No such file or directory
make: *** [ext/odbc/php_odbc.lo] Error 1



And It do not have the file ! I've already search the machine ...

N1 have these sqlcli1.h at PHP in orther to compile it.?

Below I'll tell the config and compile parameters that I used
----
--- APACHE ---
cd ../mod_ssl-2.8.18-1.3.31
./configure --enable-module=so --with-apache=../apache_1.3.31 --with-ssl=../openssl-0.9.7d
cd ../apache_1.3.31/
make
make certificate TYPE=custom
make install
--- END APACHE ---

OBS: CRIPT the CA.key
DO NOT CRYPT server.key

-- PHP --
cd ../php-4.3.7
./configure --with-apxs=/usr/local/apache/bin/apxs --with-mysql --with-pgsql --with-zip=/usr/local/lib --with-ibm-db2=/opt/IBM/db2/V8.1
make
make install
-- END PHP ---

-- LIB --
vim /etc/ld.so.conf
add line: /opt/IBM/db2/V8.1/lib
execute: ldconfig
-- END LIB --

-- APACHE EDIT TO RUN DB2 --
vim /usr/local/apache/bin/apachectl
add line: . /home/db2inst1/sqllib/db2profile
-- END APACHE EDIT TO RUN DB2 --
----

Posted: Tue Jun 22, 2004 10:29 am
by d-m
At the WebServer I do NOT have the DATABASE only the Administration Client ... I seach the machine with the DATABASE and found the sqlcli1.h .. I'll try to copy the include directory to the webserver in orthet to compile...

Posted: Tue Jun 22, 2004 10:35 am
by d-m
It Compile Right!!!