现在的位置: 首页 > 综合 > 正文

编译php-4.4.7支持oci8

2012年07月27日 ⁄ 综合 ⁄ 共 991字 ⁄ 字号 评论关闭
这段时间为编译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

抱歉!评论已关闭.