发布网友 发布时间:2022-05-20 05:25
共1个回答
热心网友 时间:2023-10-25 09:48
首先安装Oracleclient前往官网下载instant-client安装程序以Redhat32bit为例,这里选择下载InstantClientforLinuxx86然后选择你要安装的client版本,目前Linux下使用Version10.2.0.5版本较为合适下载并安装安装basic和devel这两个包oracle-instantclient-basic-10.2.0.5-1.i386.rpmoracle-instantclient-devel-10.2.0.5-1.i386.rpmrpm-ivhoracle-instantclient11.2-basic-11.2.0.3.0-1.i386.rpmrpm-ivhoracle-instantclient11.2-devel-11.2.0.3.0-1.i386.rpm下面重点了:=============================================解压缩命令:tarzxvfoci8-1.4.10.tgz一、32位linux系统下oci8的安装:/usr/local/php/bin/phpizeCFLAGS="-I/usr/include/oracle/11.2/client/"CXXFLAGS="-I/usr/include/oracle/11.2/client/"./configure--with-php-config=/usr/local/php/bin/php-config--with-oci8=shared,instantclient,/usr/lib/oracle/11.2/client/lib二、64位linux系统下oci8的安装:/usr/local/php/bin/phpizeCFLAGS="-I/usr/include/oracle/11.2/client64/"CXXFLAGS="-I/usr/include/oracle/11.2/client64/"./configure--with-php-config=/usr/local/php/bin/php-config--with-oci8=shared,instantclient,/usr/lib/oracle/11.2/client64/lib三、在php的配置文件php.ini添加:extension="oci8.so"四、重启apache服务追问我的是linux64位的,前面的都已经装好了。用了你的命令行,还是提示错误,错误还是一样的。