论坛风格切换切换到宽版
  • 3289阅读
  • 7回复

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

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

[root@localhost minig.ui.]# cd /home/minigui/libminigui-1.6.10电影
[root@loc.alhost libminigui-1.6.10]# ./co.nfigure<性病>
checki.ng build system type... i686-pc-.linux-gnu          婚庆
checking host system type... i686-pc-lin..ux-gnu.
checki.ng target system type... i6.86-pc-linux-gnu电脑
checking for gcc.... gcc.
checking for C compiler de.fault output file name... a..out.
checking whether th.e C compiler. works... yes电脑
checking whether we are .cross .compiling... no--- 印刷
checking for .suffix of executables....健康
checking fo.r suffix of object fi.les... o.
checking whethe.r we are using th.e GNU C compiler... yes    美容
checking whether gcc acc.epts. -g... yes投资
checking for gcc option to acce.pt ISO C89... none n.eeded(广告)
check.ing for l.d used by GCC... /usr/bin/ld教育
chec.king if the linker (/usr/b.in/ld) is GNU ld... yes             汽车
checking for ranlib..... ranlib教育
c.hecking for /usr/bin/ld option to re.load object files... -r健康
c.hecking for BSD-compatible nm... /usr/bin/nm .-B电脑
check.ing for a sed that does not truncate output... ./bin/sed<性病>
checking wheth.er ln -s work.s... yes    健康
checking how .to recognise dependent libraries... pa.ss_all.
checking comman.d to parse ./usr/bin/nm -B output... ok虚拟主机
c.hecki.ng how to run the C preprocessor... /lib/cpp              乙肝
configur.e: error: C preprocessor "/lib/.cpp" fails sanity check           鲜花
See `config.l.og' for more det.ails.域名
[root@localhost libminigui-1.6..10]# apt.-get           建材
bash: apt-get: command n.ot found.域名
[root@localhost libminigui-1..6.10.]# apt-get install build-essential--------------彩票
bash:. apt-get: command not fou.nd投资

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

精彩

感动

搞笑

开心

愤怒

无聊

灌水
离线zystc.
发帖
2161
C币
-313522
威望
401
贡献值
3
银元
-2
铜钱
4696
人人网人气币
0
只看该作者 沙发  发表于: 2010-04-13
Re:C
apt-get不能用?
楼主的系统不是Ubuntu吧

离线sfs041134.
发帖
2126
C币
-60295
威望
402
贡献值
1
银元
-1
铜钱
4790
人人网人气币
0
只看该作者 板凳  发表于: 2010-04-13
Re:C
回复 2# chenyx


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


发帖
2242
C币
-553427
威望
419
贡献值
2
银元
0
铜钱
4762
人人网人气币
0
只看该作者 地板  发表于: 2010-04-13
Re:C
可能是没有C语言的编译软件,可检查机子上有没有GCC,G++

发帖
1937
C币
-140796
威望
351
贡献值
1
银元
-1
铜钱
4356
人人网人气币
0
只看该作者 4楼 发表于: 2010-04-13
Re:C


QUOTE:回复  chenyx


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



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

发帖
2021
C币
-235653
威望
381
贡献值
1
银元
-1
铜钱
4484
人人网人气币
0
只看该作者 5楼 发表于: 2010-04-13
Re:C
回复 4# linux初学三月


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

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

离线laoli521.
发帖
1941
C币
-236087
威望
354
贡献值
1
银元
-4
铜钱
4476
人人网人气币
0
只看该作者 7楼 发表于: 2010-04-13
Re:C


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



    没有makefile文件运行
./configure

快速回复
限100 字节
如果您提交过一次失败了,可以用”恢复数据”来恢复帖子内容
 
上一个 下一个