QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1025|回复: 3

编译2.6内核之前都要做哪些工作呀?

[复制链接]
发表于 2003-10-5 20:12:01 | 显示全部楼层 |阅读模式
我看了一个编译2。2内核的教程,照着做不成,看了看README,也没发现我该怎么做,make xconfig出现如下错误:
  HOSTCC  scripts/fixdep
  SHIPPED scripts/kconfig/zconf.tab.h
  HOSTCC  scripts/kconfig/conf.o
sed < scripts/kconfig/lkc_proto.h > scripts/kconfig/lkc_defs.h 's/P(\([^,]*\),.*/#define \1 (\*\1_p)/'
  HOSTCC  scripts/kconfig/kconfig_load.o
  HOSTCC  scripts/kconfig/mconf.o
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/kconfig/mconf.c:12:
/usr/include/asm/errno.h:4:31: asm-generic/errno.h: 没有那个文件或目录
scripts/kconfig/mconf.c: In function `exec_conf':
scripts/kconfig/mconf.c:243: `EINTR' undeclared (first use in this function)
scripts/kconfig/mconf.c:243: (Each undeclared identifier is reported only once
scripts/kconfig/mconf.c:243: for each function it appears in.)
scripts/kconfig/mconf.c:243: `EAGAIN' undeclared (first use in this function)
make[1]: *** [scripts/kconfig/mconf.o] Error 1
make: *** [xconfig] Error 2
我按照编译2。2内核的教程的做法删除了/usr/include/下面的asm,linux,scsi,并做了链接,这样做对2。6内核不适用么?
 楼主| 发表于 2003-10-5 22:09:30 | 显示全部楼层
我已经做好链接了,不知道为什么不行:-(
你的意思是说我可以直接在/usr/src/linux-2.6.0-test6/下面make xconfig么?
回复

使用道具 举报

 楼主| 发表于 2003-10-5 23:14:50 | 显示全部楼层
那个我看了,呵呵,Red Hat9,完全安装,前几个版本都满足要求,后几个没细看,估计也没问题
但是我现在把/usr/include下面的asm等东西都删除了,怎么能恢复?
回复

使用道具 举报

发表于 2003-11-23 13:58:57 | 显示全部楼层
我晕啊!!!/usr/include下的是什么库文件啊!!!asm吗??不是,汇编吗???
是kernel的api吗???kernel-devels不是用在服务器上的吗???不安装可以吗??? :-)
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-6-16 01:01 , Processed in 0.132282 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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