编译php的时候,加入了oic8的支持却报错了,怎么改?
我用的linux想安装了php和apache。apache先装好了
没问题。
但是我在编译php的时候出问题了。
机器64位的。
相关的那些oracle-instantclient也都装好了,如:oracle-instantclient12.1-basic-12.1.0.2.0-1.x86_64.rpm
那个basic 还有devel 还有那个sqlplus这几个文件
./configure --prefix=/usr/local/php5.6.13 --with-config-file-path=/usr/local/php5.6.13/etc --enable-opcache=no --with-iconv-dir=/usr/local/libiconv --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --with-curl --with-curlwrappers --with-mhash --with-mcrypt --with-gd --enable-gd-native-ttf --with-xsl --with-openssl --with-ldap-sasl --with-xmlrpc --without-pear --enable-zip --enable-soap --enable-mbstring --enable-ftp --enable-sockets --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --disable-rpath --enable-mbregex --with-mysql --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-oci8=/usr/lib/oracle/12.1/client64 --with-oci-include=/usr/include/oracle/12.1/client64 --with-oci-lib=/usr/lib/oracle/12.1/client64/lib --with-pdo-oci=/usr/lib/oracle/12.1/client64 --with-apxs2=/usr/local/apache2.4.16/bin/apxs
在configure的时候没问题,但是买make的时候 之前还好好的,但是到了编译oci的时候就出现了:
/var/www/src/php-5.6.13/ext/oci8/oci8.c:2482: error: ‘zend_oci_globals’ has no member named ‘in_call’
/var/www/src/php-5.6.13/ext/oci8/oci8.c:2484: error: ‘OCI_SUCCESS’ undeclared (first use in this function)
/var/www/src/php-5.6.13/ext/oci8/oci8.c:2485: error: ‘php_oci_connection’ has no member named ‘errcode’
/var/www/src/php-5.6.13/ext/oci8/oci8.c:2485: error: ‘php_oci_connection’ has no member named ‘err’
/var/www/src/php-5.6.13/ext/oci8/oci8.c:2486: error: ‘ub4’ undeclared (first use in this function)
/var/www/src/php-5.6.13/ext/oci8/oci8.c:2486: error: expected ‘;’ before ‘serverStatus’
/var/www/src/php-5.6.13/ext/oci8/oci8.c:2486: error: ‘php_oci_connection’ has no member named ‘errcode’
/var/www/src/php-5.6.13/ext/oci8/oci8.c:2486: error: ‘php_oci_connection’ has no member named ‘is_open’
/var/www/src/php-5.6.13/ext/oci8/oci8.c:2486: error: ‘zend_oci_globals’ has no member named ‘in_call’
/var/www/src/php-5.6.13/ext/oci8/oci8.c:2486: error: ‘dvoid’ undeclared (first use in this function)
/var/www/src/php-5.6.13/ext/oci8/oci8.c:2486: error: expected expression before ‘)’ token
/var/www/src/php-5.6.13/ext/oci8/oci8.c:2486: error: invalid operands to binary * (have ‘const struct zend_ini_entry *’ and ‘const struct zend_ini_entry *’)
/var/www/src/php-5.6.13/ext/oci8/oci8.c:2486: error: called object ‘<erroneous-expression>’ is not a function
/var/www/src/php-5.6.13/ext/oci8/oci8.c:2486: error: ‘zend_ini_entry’ has no member named ‘server’
/var/www/src/php-5.6.13/ext/oci8/oci8.c:2486: error: ‘OCI_HTYPE_SERVER’ undeclared (first use in this function)
/var/www/src/php-5.6.13/ext/oci8/oci8.c:2486: error: ‘serverStatus’ undeclared (first use in this function)
/var/www/src/php-5.6.13/ext/oci8/oci8.c:2486: error: invalid operands to binary & (have ‘const struct zend_ini_entry *’ and ‘const struct zend_ini_entry *’)
/var/www/src/php-5.6.13/ext/oci8/oci8.c:2486: error: expected expression before ‘)’ token
/var/www/src/php-5.6.13/ext/oci8/oci8.c:2486: error: invalid operands to binary * (have ‘const struct zend_ini_entry *’ and ‘const struct zend_ini_entry *’)
/var/www/src/php-5.6.13/ext/oci8/oci8.c:2486: error: ‘zend_oci_globals’ has no member named ‘in_call’
/var/www/src/php-5.6.13/ext/oci8/oci8.c:2486: error: ‘OCI_SERVER_NORMAL’ undeclared (first use in this function)
/var/www/src/php-5.6.13/ext/oci8/oci8.c:2486: error: ‘php_oci_connection’ has no member named ‘is_open’
/var/www/src/php-5.6.13/ext/oci8/oci8.c:2486: error: ‘php_oci_connection’ has no member named ‘err
.................
这样的好多东西,是我的什么配置没对吗?
谢谢!!