LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 743|回复: 3

编译2.6.11.4内核出错! 大侠请帮忙!!

[复制链接]
发表于 2005-3-17 17:55:55 | 显示全部楼层 |阅读模式
小弟是第一次编译,今天从http://www.kernel.org下了2.6.11.4内核,并且参照 http://www.linuxsir.cn/bbs/showt ... 9174进行编译。
但是在执行完
1.cp linux-2.6.11.4.tar.bz2 /usr/src
2.cd /usr/src
(mv linux linux_old 我的/usr/src下没有这些目录,我没装过内核源码)
3.tar jxvf linux-2.6.11.4.tar.bz2
4.ln -s linux-2.6.11.4 linux
5.cd /usr/include
rm -rf asm linux scsi
ln -s /usr/src/linux/include/asm-i386 asm
ln -s /usr/src/linux/include/linux linux
ln -s /usr/src/linux/include/scsi scsi
6.cd /usr/src/linux
make mrproper
7.make xconfig 这时出错了:
[root@HANGHANG linux]# make xconfig
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/basic/split-include
In file included from /usr/include/linux/errno.h:4,
                 from /usr/include/bits/errno.h:25,
                 from /usr/include/errno.h:36,
                 from scripts/basic/split-include.c:26:
/usr/include/asm/errno.h:4:31: asm-generic/errno.h: 没有那个文件或目录
make[1]: *** [scripts/basic/split-include] 错误 1
make: *** [scripts_basic] 错误 2

换make menuconfig、make config还是这个错误。
我打开/usr/include/asm/errno.h发现里面有#include <asm-generic/errno.h>
这句话,我就
ln -s /usr/src/linux/include/asm-generic /usr/include/asm-generic 了一下
结果又出现了这个错误:
[root@HANGHANG linux]# make xconfig   HOSTCC  scripts/basic/split-include
  HOSTCC  scripts/basic/docproc
*
* Unable to find the QT installation. Please make sure that the
* QT development package is correctly installed and the QTDIR
* environment variable is set to the correct location.
*
make[1]: *** [scripts/kconfig/.tmp_qtcheck] 错误 1
make: *** [xconfig] 错误 2

不知道何为QT? 又错在何处?请大侠们帮帮忙!!多谢!!!
 楼主| 发表于 2005-3-17 17:57:30 | 显示全部楼层

编译2.6.11.4内核出错! 大侠请帮忙!!

小弟是第一次编译,今天从http://www.kernel.org下了2.6.11.4内核,并且参照 http://www.linuxsir.cn/bbs/showt ... 9174进行编译。
但是在执行完
1.cp linux-2.6.11.4.tar.bz2 /usr/src
2.cd /usr/src
(mv linux linux_old 我的/usr/src下没有这些目录,我没装过内核源码)
3.tar jxvf linux-2.6.11.4.tar.bz2
4.ln -s linux-2.6.11.4 linux
5.cd /usr/include
rm -rf asm linux scsi
ln -s /usr/src/linux/include/asm-i386 asm
ln -s /usr/src/linux/include/linux linux
ln -s /usr/src/linux/include/scsi scsi
6.cd /usr/src/linux
make mrproper
7.make xconfig 这时出错了:
[root@HANGHANG linux]# make xconfig
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/basic/split-include
In file included from /usr/include/linux/errno.h:4,
                 from /usr/include/bits/errno.h:25,
                 from /usr/include/errno.h:36,
                 from scripts/basic/split-include.c:26:
/usr/include/asm/errno.h:4:31: asm-generic/errno.h: 没有那个文件或目录
make[1]: *** [scripts/basic/split-include] 错误 1
make: *** [scripts_basic] 错误 2

换make menuconfig、make config还是这个错误。
我打开/usr/include/asm/errno.h发现里面有#include <asm-generic/errno.h>
这句话,我就
ln -s /usr/src/linux/include/asm-generic /usr/include/asm-generic 了一下
结果又出现了这个错误:
[root@HANGHANG linux]# make xconfig   HOSTCC  scripts/basic/split-include
  HOSTCC  scripts/basic/docproc
*
* Unable to find the QT installation. Please make sure that the
* QT development package is correctly installed and the QTDIR
* environment variable is set to the correct location.
*
make[1]: *** [scripts/kconfig/.tmp_qtcheck] 错误 1
make: *** [xconfig] 错误 2

不知道何为QT? 又错在何处?请大侠们帮帮忙!!多谢!!!
另我的系统是FC3,并且从清华的yum源上升了级,内核升到2.6.10-1.770.
回复 支持 反对

使用道具 举报

发表于 2005-3-17 18:29:08 | 显示全部楼层
编译2.6以上的内核
#make
#make modules_install
#make install
就可以了~

用make xconfig 就必须安装QT
你把开发工具和kde开发工具选上
回复 支持 反对

使用道具 举报

发表于 2005-3-18 00:36:28 | 显示全部楼层
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表