在ubuntu 11.10上安装GCC 4.3.4时出错

时间:2011-12-08 11:23:35

标签: c++ gcc compilation

在Ubuntu 11.10上安装GCC 4.3.4,these instructions之后,我在make阶段遇到了很多错误。完整转储是here,但重要的部分似乎是一些丢失的文件,从:

开始
/usr/include/features.h:323:26: error: bits/predefs.h: No such file or directory
/usr/include/features.h:356:25: error: sys/cdefs.h: No such file or directory
/usr/include/features.h:388:23: error: gnu/stubs.h: No such file or directory
In file included from ../../.././libgcc/../gcc/tsystem.h:90,
                 from ../../.././libgcc/../gcc/libgcc2.c:33:
/usr/include/stdio.h:36:25: error: bits/types.h: No such file or directory
In file included from ../../.././libgcc/../gcc/tsystem.h:90,
                 from ../../.././libgcc/../gcc/libgcc2.c:33:

有没有人有任何想法为什么找不到这些?谷歌搜索表明它们是标准的C标题。

(在配置阶段,我必须安装依赖项GNU MPFR和GMP)。

1 个答案:

答案 0 :(得分:0)

您必须安装libc-dev软件包。