首頁 > 資料庫 > mysql教程 > Pro*C 环境配置(RedHat +Oracle 10g)

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

WBOY
發布: 2016-06-07 17:31:21
原創
1038 人瀏覽過

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

环境搭建完毕后,,终端中输入命令 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,

來源:php.cn
本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板