因为编译内核的原因(2.6.33),需要一个低版本的gcc(f16自带是4.6.3-2),考虑到曾经在centos6上,使用gcc 4.4.6编译kernel成功过,所以决定用4.4.6
下载gcc源码不必说
Problem1:
configure的时候报configure: error: Building GCC requires GMP 4.1+ and MPFR 2.3.2+.
Solve1: yum install gmp_devel
yum install mpfr_devel
configure--prefix=/usr/local/gcc-4.4.6 --enable-threads=posix --disable-checking--enable--long-long --with-system-zlib--enable-languages=c,c++,java
make
Problem2:
/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory
Solve2: yum install glibc-devel.i686
之后make install,按照【参考3】的方法即可搞定
参考
1. http://hi.baidu.com/shen____yan/item/5f6118addab1f7a128ce9d29
2. http://stackoverflow.com/questions/7412548/gnu-stubs-32-h-no-such-file-or-directory
3. http://hi.baidu.com/shi_yang_zi/item/76198110dc0a638b89a95630
在Fedora 16中,由于需要编译2.6.33内核,因此需要安装GCC 4.4.6。配置时遇到GMP和MPFR版本要求,通过`yum install`解决依赖问题。接着在编译时遇到`gnu/stubs-32.h`文件缺失,通过`yum install glibc-devel.i686`解决。按照指定参考链接的步骤,完成GCC 4.4.6的安装。
7744

被折叠的 条评论
为什么被折叠?



