編譯php-4.4.7支援oci8

來源:互聯網
上載者:User
這段時間為編譯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

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.