梦想 就像鸡蛋
要么孵化 要么臭掉
要么孵化 要么臭掉
OCI_NLS_CHARSET_ID undeclared
Made In Zeal 转载请保留原始链接:http://www.zeali.net/entry/117
php-4.3.10 + Oracle 9.2.0.4.0 , 在 linux下编译安装php的时候make报错:
/root/php-4.3.10/ext/oci8/oci8.c: In function `_oci_open_session':
/root/php-4.3.10/ext/oci8/oci8.c:2183: `OCI_NLS_CHARSET_ID' undeclared (first use in this function)
解决方法:
下载Oracle文件补丁 , 解压以后编辑文件oci.h,在文件最前面注释的下面增加一行内容:
#define OCI_NLS_CHARSET_ID 0
然后把所有的补丁文件 (.c 和 .h)拷贝到安装文件目录 /root/php-4.3.10/ext/oci8/ 以及 /root/php-4.3.10/main/ 下面
重新configure,make,install。
问题引起:应该是不同版本的PHP和Oracle之间的兼容性问题。
This Entry was Last Modified on 2007-05-25 20:53
没有评论.
发贴统计

我的地盘