FreeBSD? cd /usr/ports/databases/php5-oci8 ; make install clean; 搞定收工
取得 http://ftp.freshrpms.net/pub/freshrpms/redhat/testing/EL5/oracle/SRPMS/oracle-instantclient-10.2.0.3-1.nosrc.rpm
# rpm -hiv ...
取得 http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/linuxsoft.html 底下的
instantclient-basic-linux32-10.2.0.3-20061115.zip
instantclient-jdbc-linux32-10.2.0.3-20061115.zip
instantclient-odbc-linux32-10.2.0.3-20061115.zip
instantclient-sdk-linux32-10.2.0.3-20061115.zip
instantclient-sqlplus-linux32-10.2.0.3-20061115.zip
將上述檔案放到 /usr/src/redhat/SOURCES
然後開始編了
# cd /usr/src/redhat接下來把編出來的東西都裝一裝。unixODBC 一般人不會裝到, 所以列在下面免得漏掉
# rpmbuild -ba SPECS/oracle-instantclient.spec
# yum install unixODBC.i386
# cd /usr/src/redhat/RPMS
# for i in *.rpm; do rpm -hiv ${i}; done
取得 http://ftp.freshrpms.net/pub/freshrpms/redhat/testing/EL5/oracle/i386/php-oci8-5.1.6-1.el5.i386.rpm
# rpm -hiv ...接下來就是重啟 apache
# ldconfig (refresh cache. 好像不用? 管它, 有拜有保佑)
# service httpd stop開 phpinfo 去看, 應當可以看到 oci8 在裡面了。
# service httpd start
裝起來後, 其它調校的文件, 就自行 google 吧 ...
懶人包? 等我有空吧 zzz