這段時間為編譯PHP支援ORACLE忙碌著,
上次裝的是APACHE2.2.4但對ORACLE的問題一直沒解決,沒辦法只好再編譯APACHE1.3.37和php4.4.7
前面已經介紹過裝oracle用戶端了,這裡主要針對APACHE1.3.37和php4.4.7的編譯記錄一下
Apache 1.3.37
tar -zxvf apache-1.3.37.tar.gz
cd apache_1.3.37/
./configure --prefix=/opt/app/apache-1.3.37 --enable-module=so --enable-module=rewrite --enable-shared=max
make
make install
Php 4.4.7
tar -zxvf php-4.4.7.tar.gz
cd php-4.4.7/
export LD_LIBRARY_PATH=/usr/lib/oracle/10.2.0.3/client/lib/
echo /usr/lib/oracle/10.2.0.3/client/ >> /etc/ld.so.conf
ldconfig
export ORACLE_HOME=/usr/lib/oracle/10.2.0.3/client/lib/
./configure --prefix=/opt/app/php-4.4.7/ --with-apxs=/opt/app/apache-1.3.37/bin/apxs --with-config-file-path=/opt/app/php --with-zlib --enable-sockets --enable-gd-native-ttf --with-gd --with-ttf --with-gdbm --with-gettext --with-iconv --with-png --with-xml --with-zlib --enable-exif --enable-mbstring –with-ldap --with-curl --with-freetype-dir=/usr --with-png-dir=/usr --with-jpeg-dir=/usr --with-t1lib=/usr/local --enable-sigchild --with-ldap --with-oci8-instant-client
make
make install