我用的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
.................
这样的好多东西,是我的什么配置没对吗?
谢谢!!
没问题。但是我在编译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
.................
这样的好多东西,是我的什么配置没对吗?
谢谢!!
解决方案 »
- 一用Eclipse做PHP开发技术群[50279099]
- 求助,PHP,FLEX解析PDF,OFFICE,TEXT文档,类似百度文库的原理或源码
- 谁知道PHP的runtime机制是什么?或者说实现方式
- discuz!x2 论坛主导航内容从哪里查询出来的?
- 第一次提问,PHP可以开发WEBSERVICE么?还有就是开发的东东可以在LIUNX下运行么?
- 关闭IE7选项卡??
- 用过PHP的Discuz!论坛,UCenter Home 和 SupeSite的朋友请进
- 求一份windows下的php_apc for php5.3!!!
- php 导出数据,格式为csv
- thinkphp筛选问题
- PHP实现下载msi文件,下载后msi文件无法运行
- 做一个类似微博的程序,想知道怎样获取所有我收到的评论
我刚date了一下,比标准时间大概慢了3分钟
/bin/sh /var/www/src/php-5.6.13/libtool --silent --preserve-dup-deps --mode=compile /var/www/src/php-5.6.13/meta_ccld -Iext/oci8/ -I/var/www/src/php-5.6.13/ext/oci8/ -DPHP_ATOM_INC -I/var/www/src/php-5.6.13/include -I/var/www/src/php-5.6.13/main -I/var/www/src/php-5.6.13 -I/var/www/src/php-5.6.13/ext/date/lib -I/var/www/src/php-5.6.13/ext/ereg/regex -I/usr/include/libxml2 -I/usr/include/freetype2 -I/var/www/src/php-5.6.13/ext/mbstring/oniguruma -I/var/www/src/php-5.6.13/ext/mbstring/libmbfl -I/var/www/src/php-5.6.13/ext/mbstring/libmbfl/mbfl -I/usr/local/include -I/var/www/src/php-5.6.13/ext/sqlite3/libsqlite -I/var/www/src/php-5.6.13/ext/zip/lib -I/var/www/src/php-5.6.13/TSRM -I/var/www/src/php-5.6.13/Zend -D_REENTRANT -DTHREAD=1 -I/usr/include -g -O2 -fvisibility=hidden -pthread -DZTS -c /var/www/src/php-5.6.13/ext/oci8/oci8.c -o ext/oci8/oci8.lo
In file included from /var/www/src/php-5.6.13/ext/oci8/oci8.c:46:
/var/www/src/php-5.6.13/ext/oci8/php_oci8_int.h:60:17: error: oci.h: No such file or directory
In file included from /var/www/src/php-5.6.13/ext/oci8/oci8.c:46:
/var/www/src/php-5.6.13/ext/oci8/php_oci8_int.h:124: error: expected specifier-qualifier-list before ‘OCIEnv’
/var/www/src/php-5.6.13/ext/oci8/php_oci8_int.h:136: error: expected specifier-qualifier-list before ‘OCIEnv’
In file included from /var/www/src/php-5.6.13/ext/oci8/oci8.c:46:
/var/www/src/php-5.6.13/ext/oci8/php_oci8_int.h:170: error: expected specifier-qualifier-list before ‘dvoid’
/var/www/src/php-5.6.13/ext/oci8/php_oci8_int.h:185: error: expected specifier-qualifier-list before ‘ub4’
/var/www/src/php-5.6.13/ext/oci8/php_oci8_int.h:194: error: expected specifier-qualifier-list before ‘OCIType’
/var/www/src/php-5.6.13/ext/oci8/php_oci8_int.h:206: error: expected specifier-qualifier-list before ‘text’
/var/www/src/php-5.6.13/ext/oci8/php_oci8_int.h:217: error: expected specifier-qualifier-list before ‘ub4’
/var/www/src/php-5.6.13/ext/oci8/php_oci8_int.h:239: error: expected specifier-qualifier-list before ‘OCIBind’
/var/www/src/php-5.6.13/ext/oci8/php_oci8_int.h:264: error: expected specifier-qualifier-list before ‘OCIDefine’
/var/www/src/php-5.6.13/ext/oci8/php_oci8_int.h:406: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘php_oci_error’
/var/www/src/php-5.6.13/ext/oci8/php_oci8_int.h:407: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘php_oci_fetch_errmsg’
/var/www/src/php-5.6.13/ext/oci8/php_oci8_int.h:408: error: expected declaration specifiers or ‘...’ before ‘text’
/var/www/src/php-5.6.13/ext/oci8/php_oci8_int.h:408: error: expected declaration specifiers or ‘...’ before ‘ub2’
In file included from /var/www/src/php-5.6.13/ext/oci8/oci8.c:46:
/var/www/src/php-5.6.13/ext/oci8/php_oci8_int.h:419: error: expected declaration specifiers or ‘...’ before ‘sb4’
/var/www/src/php-5.6.13/ext/oci8/php_oci8_int.h:419: error: expected declaration specifiers or ‘...’ before ‘ub4’
/var/www/src/php-5.6.13/ext/oci8/php_oci8_int.h:426: error: expected declaration specifiers or ‘...’ before ‘ub4’
/var/www/src/php-5.6.13/ext/oci8/php_oci8_int.h:427: error: expected declaration specifiers or ‘...’ before ‘ub4
说什么没有那个oci.h的文件,怎么回事?
那个php的这个压缩包里面本来就没有这个文件啊,