当前位置: 技术问答>linux和unix
请教LINUX上PROC的编译问题?
来源: 互联网 发布时间:2015-06-10
本文导语: 我在REDHAT上编译PROC程序出现如下错误(原来在UNIX上是正常的): ====================================================================== cc -O3 -DPRECOMP -I. -I/home/oracle/Oracle817/product/8.1.7/precomp/public - I/home/oracle/Oracle817/product/8.1.7...
我在REDHAT上编译PROC程序出现如下错误(原来在UNIX上是正常的):
======================================================================
cc -O3 -DPRECOMP -I. -I/home/oracle/Oracle817/product/8.1.7/precomp/public -
I/home/oracle/Oracle817/product/8.1.7/rdbms/public -I/home/oracle/Oracle817/prod
uct/8.1.7/rdbms/demo -I/home/oracle/Oracle817/product/8.1.7/plsql/public -I/home
/oracle/Oracle817/product/8.1.7/network/public -DLINUX -D_GNU_SOURCE -DSLTS_ENAB
LE -DSLMXMX_ENABLE -D_REENTRANT -DNS_THREADS -c option.c
proc iname=dbinf
Pro*C/C++: Release 8.1.7.0.0 - Production on Sun Nov 16 18:26:38 2003
(c) Copyright 2000 Oracle Corporation. All rights reserved.
System default option values taken from: /home/oracle/Oracle817/product/8.1.7/pr
ecomp/admin/pcscfg.cfg
Error at line 33, column 10 in file /usr/include/stdio.h
#include
.........1
PCC-S-02015, unable to open include file
Error at line 38, column 10 in file /usr/include/stdio.h
#include
.........1
PCC-S-02015, unable to open include file
Error at line 29, 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 11 in file /usr/include/libio.h
# include
..........1
PCC-S-02015, unable to open include file
===================================================================
只粘上部分错误提示,经查,确实没有stddef.h和stdarg.h等头文件,但我安装
LINUX是是把所有的开发包都装上了。且编译非PROC程序却又是正常的!
不知何固?
======================================================================
cc -O3 -DPRECOMP -I. -I/home/oracle/Oracle817/product/8.1.7/precomp/public -
I/home/oracle/Oracle817/product/8.1.7/rdbms/public -I/home/oracle/Oracle817/prod
uct/8.1.7/rdbms/demo -I/home/oracle/Oracle817/product/8.1.7/plsql/public -I/home
/oracle/Oracle817/product/8.1.7/network/public -DLINUX -D_GNU_SOURCE -DSLTS_ENAB
LE -DSLMXMX_ENABLE -D_REENTRANT -DNS_THREADS -c option.c
proc iname=dbinf
Pro*C/C++: Release 8.1.7.0.0 - Production on Sun Nov 16 18:26:38 2003
(c) Copyright 2000 Oracle Corporation. All rights reserved.
System default option values taken from: /home/oracle/Oracle817/product/8.1.7/pr
ecomp/admin/pcscfg.cfg
Error at line 33, column 10 in file /usr/include/stdio.h
#include
.........1
PCC-S-02015, unable to open include file
Error at line 38, column 10 in file /usr/include/stdio.h
#include
.........1
PCC-S-02015, unable to open include file
Error at line 29, 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 11 in file /usr/include/libio.h
# include
..........1
PCC-S-02015, unable to open include file
===================================================================
只粘上部分错误提示,经查,确实没有stddef.h和stdarg.h等头文件,但我安装
LINUX是是把所有的开发包都装上了。且编译非PROC程序却又是正常的!
不知何固?
|
这些文件在/usr/include/linux 下面
你将此目录加上就可以了
你将此目录加上就可以了
|
看看pcscfg.cfg配置是否正确?