Saturday, April 14, 2007

PHP Compile process in HPUX and Linux

a) Fix configure script. Somehow this does not detect right APACHE version on HPUX in case of APACHE2. I did not find the better way of doing it hence replace APACHE_VERSION=`expr $4 \* 1000000 + $5 \* 1000 + $6` to APACHE_VERSION="2000048" for version 2.0.48.

b) run
./configure --enable-libgcc --with-apxs2=/opt/hpws/apache/bin/apxs --with-oracle=/opt/oracle/rtcis/product/9.2.0 --with-oci8=/opt/oracle/rtcis/product/9.2.0 --with-dom -with-zlib

This builds the PHP with support of Oracle (tested with 8i and 9i), XML and Zlib.

c) vi ./libtool
search for deplibs_check_method and replace that with deplibs_check_method="pass_all"

d) make

e) Module build. :)

No comments: