论坛风格切换切换到宽版
  • 777阅读
  • 9回复

C preprocessor "/lib/cpp" fails sanity check 该怎么办? [复制链接]

上一主题 下一主题
离线klxqlqw.
 
发帖
2074
C币
-262870
威望
355
贡献值
2
银元
-3
铜钱
4474
人人网人气币
0
只看楼主 倒序阅读 使用道具 楼主  发表于: 2009-04-27
请教各位,我遇到了两个问题,第一个:当我输入./configure的时候,发生了 configure: error: C. preprocessor "/lib/.cpp" fails sanity check.           鲜花
See `config.log' for more details.这样的错误。有人说是由于我的系统缺少gcc-c的编辑器,可我仔细看.了我的系统,这些编辑器我.全.部都安装过了。--- 印刷
第二个:根据有人提及的.我可以输入apt.-get install build-essential命令,可当我输入就出现bash: apt-get: .command not found的错误。有人说是环.境变量的问题,可我真是一个初学者,确实不知道该怎么改。请教各位大侠,小弟不胜感激。
以下是我的命令行:

[root@localhost minigui]# cd /home/.minigui/libminig.ui-1.6.10教育
[root@localhost libminigui-1.6.10.]# ./configure.电影
checking build system typ.e... i686-p.c-linux-gnu域名
c.hecking host system type... i686-pc-linux-.gnu电影
checking target system. type... i686-pc-linux-gn.u.
checking for gcc.... gcc.
checking for C compiler defaul.t output. file name... a.out--------------彩票
checking whether the C compile.r .works... yes电脑
checking w.hethe.r we are cross compiling... no.
checking for suffix o.f executa.bles....
checkin.g for suffix of object files.... o.
checking whether we are using the. GNU C c.ompiler... yes--------------彩票
checking whether gcc a.ccepts -g... ye.s.
checking for gcc option to accept ISO C89... .n.one needed.
checking for ld us..ed by GCC... /usr/bin/ld--------------彩票
checking if the linker (/usr/bin/ld) is. GNU ld.... yes          婚庆
checking for ranli.b.... ranlib          婚庆
check.ing for /usr./bin/ld option to reload object files... -r[成人用品]
checking for BSD-c.ompa.tible nm... /usr/bin/nm -B电脑
checking for a. sed that does not truncate output... /bin/s.ed投资
checking whether l.n -s works... y.es.
checking how to reco.gnise dependent libraries... pass_all.域名
checking command to parse /usr/b.in/nm -B out.put... ok.
checking how to run the C pre.processor... /l.ib/cpp.
c.onfigure: error: C preprocessor "/lib/cpp". fails sanity check教育
See `config..log' for m.ore details.域名
[root@loca.lhost libminigui-1.6.10.]# apt-get           建材
b.ash: apt-get: command not. found    美容
[root@localhost libminigui-1.6.10]# apt-.get install. build-essential--------------彩票
bas.h: apt-get.: command not found.

评价一下你浏览此帖子的感受

精彩

感动

搞笑

开心

愤怒

无聊

灌水
离线cylczzj.
发帖
2088
C币
-60539
威望
413
贡献值
1
银元
-4
铜钱
4850
人人网人气币
0
只看该作者 沙发  发表于: 2010-04-10
Re:C
apt-get不能用?
楼主的系统不是Ubuntu吧

离线灯笼芯.
发帖
2157
C币
-593606
威望
401
贡献值
2
银元
-4
铜钱
4843
人人网人气币
0
只看该作者 板凳  发表于: 2010-04-10
Re:C
回复 2# chenyx


    我只知道我用的是linux2.6内核,小红帽enterprise linux4

离线122284197.
发帖
2115
C币
-235616
威望
365
贡献值
1
银元
-4
铜钱
4739
人人网人气币
0
只看该作者 地板  发表于: 2010-04-10
Re:C
可能是没有C语言的编译软件,可检查机子上有没有GCC,G++

发帖
2078
C币
-235495
威望
377
贡献值
1
银元
-1
铜钱
4606
人人网人气币
0
只看该作者 4楼 发表于: 2010-04-10
Re:C


QUOTE:回复  chenyx


    我只知道我用的是linux2.6内核,小红帽enterprise linux4
mch_kot 发表于 2010-04-05 09:50



    红帽可以自己下载rpm包安装rpm.pbone.net/这里找gcc

离线xinjiao.
发帖
2067
C币
-60723
威望
386
贡献值
1
银元
-2
铜钱
4636
人人网人气币
0
只看该作者 5楼 发表于: 2010-04-10
Re:C
回复 4# linux初学三月


    开发工具包里的包括GCC的开发工具的73个东西,我都装全了,但问题还是依旧

离线ms1029.
发帖
2173
C币
-234903
威望
422
贡献值
1
银元
-3
铜钱
4955
人人网人气币
0
只看该作者 6楼 发表于: 2010-04-10
Re:C
在上面显示错误的基础上,当我输入make命令后会显示: make:*** 没有指明目标并且找不到makefile.停止。

离线呼唤.
发帖
2030
C币
-60609
威望
360
贡献值
1
银元
-1
铜钱
4475
人人网人气币
0
只看该作者 7楼 发表于: 2010-04-10
Re:C


QUOTE:在上面显示错误的基础上,当我输入make命令后会显示: make:*** 没有指明目标并且找不到makefile.停止。
mch_kot 发表于 2010-04-05 10:06



    没有makefile文件运行
./configure

离线ilxd.
发帖
2128
C币
-60197
威望
412
贡献值
1
银元
-1
铜钱
4904
人人网人气币
0
只看该作者 8楼 发表于: 2010-04-10
Re:C
回复 8# dooros


    目前我./configure    make等都有问题,但同样的程序安装包在别人机子上就没有问题,我想一定是我哪里没有设好,请教各位了

离线fishleong.
发帖
1929
C币
-61154
威望
331
贡献值
1
银元
-1
铜钱
4179
人人网人气币
0
只看该作者 9楼 发表于: 2010-04-10
Re:C


QUOTE:回复  dooros


    目前我./configure    make等都有问题,但同样的程序安装包在别人机子上就没有问题 ...
mch_kot 发表于 2010-04-05 10:45



    安装linux头文件包,就是linux-...-header.....
快速回复
限100 字节
批量上传需要先选择文件,再选择上传
 
上一个 下一个