手机版
你好,游客 登录 注册
背景:
阅读新闻

Pro*C 环境配置(RedHat +Oracle 10g)

[日期:2013-08-16] 来源:openszone  作者:myfreedom614 [字体: ]

环境搭建完毕后,终端中输入命令 proc

如果有如下错误提示:

[Oracle@oracleserver ~]$ proc
proc: error while loading shared libraries: libclntsh.so.10.1: cannot open shared object file: No such file or directory可以直接在用户配置文件 .bash_profile 中添加:

export LD_LIBRARY_PATH=$ORACLE_HOME/lib输入以下命令生效:

source .bash_profile———————————————————-
编译.pc程序文件时,如果提示这样的错误:

Pro*C/C++: Release 10.2.0.1.0 - Production on Tue May 21 15:50:48 2013

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

System default option values taken from: /home/oracle/OraHome1/oracle10g/precomp/admin/pcscfg.cfg

Error at line 34, column 11 in file /usr/include/stdio.h
# include
..........1
PCC-S-02015, unable to open include file
Error at line 31, column 10 in file /usr/include/bits/types.h
#include
.........1
PCC-S-02015, unable to open include file
Error at line 14, column 10 in file /usr/include/_G_config.h
#include
.........1
PCC-S-02015, unable to open include file
Error at line 48, column 10 in file /usr/include/wchar.h
#include
.........1
PCC-S-02015, unable to open include file
Error at line 48, column 10 in file /usr/include/wchar.h
#include
.........1
PCC-S-02015, unable to open include file
Error at line 31, column 10 in file /usr/include/gconv.h
#include
.........1
PCC-S-02015, unable to open include file
Syntax error at line 72, column 26, file /usr/include/gconv.h:
Error at line 72, column 26 in file /usr/include/gconv.h
                            unsigned char **, size_t *, int, int);
.........................1
PCC-S-02201, Encountered the symbol "size_t" when expecting one of the following
:

  ... auto, char, const, double, enum, float, int, long,
  ulong_varchar, OCIBFileLocator OCIBlobLocator,
  OCIClobLocator, OCIDateTime, OCIExtProcContext, OCIInterval,
  OCIRowid, OCIDate, OCINumber, OCIRaw, OCIString, register,
  short, signed, sql_context, sql_cursor, static, struct,
  union, unsigned, utext, uvarchar, varchar, void, volatile,
  a typedef name, exec oracle, exec oracle begin, exec,
  exec sql, exec sql begin, exec sql type, exec sql var,
The symbol "enum," was substituted for "size_t" to continue.

Syntax error at line 88, column 7, file /usr/include/gconv.h:
Error at line 88, column 7 in file /usr/include/gconv.h
                                  size_t *);
......1
PCC-S-02201, Encountered the symbol "size_t" when expecting one of the following
:

  ... auto, char, const, double, enum, float, int, long,
  ulong_varchar, OCIBFileLocator OCIBlobLocator,
  OCIClobLocator, OCIDateTime, OCIExtProcContext, OCIInterval,
  OCIRowid, OCIDate, OCINumber, OCIRaw, OCIString, register,
  short, signed, sql_context, sql_cursor, static, struct,
  union, unsigned, utext, uvarchar, varchar, void, volatile,
  a typedef name, exec oracle, exec oracle begin, exec,
  exec sql, exec sql begin, exec sql type, exec sql var,
The symbol "enum," was substituted for "size_t" to continue.

Syntax error at line 97, column 6, file /usr/include/gconv.h:
Error at line 97, column 6 in file /usr/include/gconv.h
                                        size_t *);
.....1
PCC-S-02201, Encountered the symbol "size_t" when expecting one of the following
:

  ... auto, char, const, double, enum, float, int, long,
  ulong_varchar, OCIBFileLocator OCIBlobLocator,
  OCIClobLocator, OCIDateTime, OCIExtProcContext, OCIInterval,
  OCIRowid, OCIDate, OCINumber, OCIRaw, OCIString, register,
  short, signed, sql_context, sql_cursor, static, struct,
  union, unsigned, utext, uvarchar, varchar, void, volatile,
  a typedef name, exec oracle, exec oracle begin, exec,
  exec sql, exec sql begin, exec sql type, exec sql var,
The symbol "enum," was substituted for "size_t" to continue.

Syntax error at line 106, column 3, file /usr/include/gconv.h:
Error at line 106, column 3 in file /usr/include/gconv.h
  __gconv_trans_fct __trans_fct;
..1
PCC-S-02201, Encountered the symbol "__gconv_trans_fct" when expecting one of th
e following:

  char, const, double, enum, float, int, long, ulong_varchar,
  OCIBFileLocator OCIBlobLocator, OCIClobLocator, OCIDateTime,
  OCIExtProcContext, OCIInterval, OCIRowid, OCIDate, OCINumber,
  OCIRaw, OCIString, short, signed, sql_context, sql_cursor,
  struct, union, unsigned, utext, uvarchar, varchar, void,
  volatile, a typedef name,

Error at line 53, column 11 in file /usr/include/libio.h
# include
..........1
PCC-S-02015, unable to open include file
Error at line 33, column 10 in file /usr/include/string.h
#include
.........1
PCC-S-02015, unable to open include file
Syntax error at line 0, column 0, file Desktop/test.pc:
Error at line 0, column 0 in file Desktop/test.pc
PCC-S-02201, Encountered the symbol "" when expecting one of the following:

  ; : an identifier, end-exec, random_terminal

Error at line 0, column 0 in file Desktop/test.pc
PCC-F-02102, Fatal error while doing C preprocessing

推荐阅读:

Red Hat Enterprise Linux AS 4.8中安装Oracle 10g R2详解  http://www.linuxidc.com/Linux/2013-08/88709.htm

接下来请看第2页精彩内容http://www.linuxidc.com/Linux/2013-08/88880p2.htm

linux
相关资讯       Oracle 10g配置  Pro*C 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款