Configure the Pro * C environment (RedHat + Oracle10g)

Source: Internet
Author: User
Tags utext
Configure the Pro * C environment (RedHat + Oracle10g)

Configure the Pro * C environment (RedHat + Oracle 10g)

After the environment is set up, enter the command proc in the terminal

If the following error message is displayed:

[Oracle @ oracleserver ~] $ Proc
Proc: error while loading shared libraries: libclntsh. so.10.1: cannot open shared object file: No such file or directory can be directly added to the user configuration file. bash_profile:

Export LD_LIBRARY_PATH = $ ORACLE_HOME/lib enter the following command to take effect:

Source. bash_profile --------------------
When compiling a. pc program file, if the following error occurs:

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

Copyright (c) 1982,200 5, 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,

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.