ubuntu 14.04 (linux) 安装 oracle 客户端 及php oracle (oci8) 扩展
1 安装alien
sudo apt-get install alien
2从这里 http://www.oracle.com/technetwork/topics/linuxsoft-082809.html下载
oracle-instantclient-basic-10.2.0.5-1.i386.rpm及oracle-instantclient-devel-10.2.0.5-1.i386.rpm
3 sudo alien -i oracle-instantclient-basic-10.2.0.5-1.i386.rpm
sudo alien -i oracle-instantclient-devel-10.2.0.5-1.i386.rpm
4 下载 oci8-2.0.8.tgz
5 tar -zxf oci8-2.0.8.tgz
cd oci8-2.0.8/
6phpize
./configure -with-oci8=shared,instantclient,/usr/lib/oracle/10.2.0.5/client/lib
sudo make install
7在php.ini中加 extension=oci8.so
相关博文
ubuntu 14.04 (linux) 安装 oracle 客户端 及php oracle (oci8) 扩展