免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1114 | 回复: 3
打印 上一主题 下一主题

[Linux资讯] 源码编译问ti [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2015-03-19 14:34 |只看该作者 |倒序浏览
大神 谁能帮帮我!

操作系统版本如下:
[root@Raise net-snmp-5.4.1]# uname -a
Linux Raise 3.8.0-sw2f #19 SMP Thu Jun 26 09:38:13 CST 2014 sw_64 sw_64 sw_64 GNU/Linux
[root@Raise net-snmp-5.4.1]# ./configure
checking what to build and install...  agent apps man local mibs
using default persistent mask 077
using default AgentX socket /var/agentx/master
using default "enterprise.net-snmp"
using default enterprise sysOID "NET-SNMP-MIB::netSnmpAgentOIDs..."
using default notifications "NET-SNMP-MIB::netSnmpNotifications"
using OS default send buffer size for server sockets
using OS default recv buffer size for server sockets
using OS default send buffer size for client sockets
using OS default recv buffer size for client sockets
checking if I need to feed myself to ksh... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.

工具包:
[root@Raise net-snmp-5.4.1]# rpm -qa | grep gcc
gcc-c++-4.5.3-7.SW.sw_64
gcc-objc-4.5.3-7.SW.sw_64
libgcc-4.5.3-7.SW.sw_64
gcc-4.5.3-7.SW.sw_64
gcc-gfortran-4.5.3-7.SW.sw_64
gcc-java-4.5.3-7.SW.sw_64
gcc-objc++-4.5.3-7.SW.sw_64

论坛徽章:
0
2 [报告]
发表于 2015-03-19 14:58 |只看该作者
这是config.log文件
configure:4540: result: /lib/cpp
configure:4564: /lib/cpp  conftest.c
In file included from /usr/include/features.h:385:0,
                 from /usr/include/limits.h:27,
                 from /usr/lib/gcc/sw_64sw2-raise-linux/4.5.3/include/limits.h:169,
                 from /usr/lib/gcc/sw_64sw2-raise-linux/4.5.3/include/syslimits.h:7,
                 from /usr/lib/gcc/sw_64sw2-raise-linux/4.5.3/include/limits.h:34,
                 from conftest.c:16:
/usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory
compilation terminated.
configure:4570: $? = 1
configure: failed program was:



#endif
|                    Syntax error
configure:4639: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_c_compiler_gnu=yes
ac_cv_env_CC_set=

论坛徽章:
18
处女座
日期:2014-11-13 15:52:322015亚冠之胡齐斯坦钢铁
日期:2015-08-14 16:09:082015亚冠之北京国安
日期:2015-06-02 18:41:152015亚冠之广州恒大
日期:2015-06-02 18:41:15NBA常规赛纪念章
日期:2015-05-04 22:32:032015年亚洲杯之中国
日期:2015-04-01 16:38:392015小元宵徽章
日期:2015-03-06 15:58:182015年亚洲杯之阿联酋
日期:2015-03-06 09:33:432015年辞旧岁徽章
日期:2015-03-04 13:32:472015年迎新春徽章
日期:2015-03-04 10:01:44拜羊年徽章
日期:2015-03-03 16:15:43洛杉矶快船
日期:2015-03-02 16:05:34
3 [报告]
发表于 2015-03-20 11:53 |只看该作者
yum install cpp* 再试试。

论坛徽章:
0
4 [报告]
发表于 2015-03-20 15:27 |只看该作者
谢谢你!  装了之后还是不行,这是国产服务器,编译很头疼的!  从网上看得办法基本上都试过了!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP