当前位置: 代码迷 >> Web前端 >> oci8扩充安装
  详细解决方案

oci8扩充安装

热度:139   发布时间:2013-02-19 11:11:41.0
oci8扩展安装
1、下载oracle客户端
oracle-instantclient-basic-10.2.0.5-1.i386.rpm
oracle-instantclient-devel-10.2.0.5-1.i386.rpm
oracle-instantclient-sqlplus-10.2.0.5-1.i386.rpm
rpm -ivh 解压
2、下载oci8扩展包 oci8-1.4.9.tgz
tar zxvf oci8-1.4.9.tgz
cd oci8-1.4.9.tgz
/webhome/php/bin/phpize
CFLAGS="-I/usr/include/oracle/10.2.0.5/client64/"
CXXFLAGS="-I/usr/include/oracle/10.2.0.5/client64/"
./configure --with-php-config=/webhome/php/bin/php-config --with-oci8=instantclient,/usr/lib/oracle/10.2.0.5/client64/lib/
3、/webhome/php/bin/php -m | grep oci8 查看是否成功安装oci8扩展