QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1060|回复: 9

编译linux-2.6.9的问题

[复制链接]
发表于 2004-11-23 13:36:35 | 显示全部楼层 |阅读模式
大侠们:救命阿~~~
我在redhat9.0下编译linux-2.6.9。。
前面准备都好拉。可是当我输入make xconfig进行配置时
虚拟终端提示我:make: *** No rule to make target `xconfig'.  Stop.
然后后面的步骤就无法进行拉~
大侠们:这个是怎么一回事情阿 ?好急阿 ~~~~
发表于 2004-11-23 21:55:46 | 显示全部楼层
pwd 和 ls -l 的结果贴上来看看
回复

使用道具 举报

 楼主| 发表于 2004-11-23 23:21:15 | 显示全部楼层
pwd的结果是/usr/src
ls -l的结果是
drwxr-xr-x    2 root     root         4096 2003-01-25  debug
lrwxrwxrwx    1 root     root           11 11月 23 22:53 linux -> linux-2.6.9
drwxr-xr-x   16 root     root         4096 11月 23 13:20 linux-2.4.20-8
drwxrwxr-x   18 honglang13 honglang13     4096 11月 23 22:53 linux-2.6.9
-rwxr-xr-x    1 root     root     45500766 11月 23 22:49 linux-2.6.9.tar.gz
drwxr-xr-x    7 root     root         4096 10月 21 23:51 redhat
回复

使用道具 举报

 楼主| 发表于 2004-11-23 23:27:19 | 显示全部楼层
进入/usr/src/linux或者/usr/src/linux-2.6.9后
输入:make menuconfig或者make config或者make xconfig或者make oldconfig
均提示出错,出错信息是:
  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] Error 1
make: *** [scripts_basic] Error 2
回复

使用道具 举报

 楼主| 发表于 2004-11-23 23:39:12 | 显示全部楼层
我比较了一下/usr/src/linux-2.4.20-8目录和/usr/src/linux-2.6.9目录下的东西
发现/usr/src/linux-2.6.9比/usr/src/linux-2.4.20-8下少了
configs目录和COPYING.modules与Rules.make普通文件
却多了security,sound和usr目录
这是怎么会事阿?make xconfig出错是不是与少了configs目录有关??
可是我下了很多linux-2.6.9的内核都是那样
到底怎么了?兄弟们站出来帮邦忙阿 !!
回复

使用道具 举报

发表于 2004-11-24 18:02:10 | 显示全部楼层
你都没进入源代码目录你make什么啊
回复

使用道具 举报

 楼主| 发表于 2004-11-24 19:52:06 | 显示全部楼层
可是我进去也是不可以~~~
只有把以前的一个文件erro.h拷贝到那里面才可以!!
不过我现在只是编译好了~~
好没有彻底弄好,不知道那样可以不?
回复

使用道具 举报

发表于 2004-11-24 20:40:57 | 显示全部楼层
你是不是把源码下的include/linux和include/asm联结到/usr/include下了?
回复

使用道具 举报

 楼主| 发表于 2004-11-25 10:50:03 | 显示全部楼层
是 阿 ~~~
我把源代码下的include/linux和include/asm和include/asm都联接到拉/usr/include下拉!
可是我觉得这样应该没有影响的阿 ,只是联结到那下面。不是拷贝阿
有什么后果吗??
回复

使用道具 举报

发表于 2004-11-25 12:28:29 | 显示全部楼层
http://www.linuxfans.org/nuke/modules.php?name=Forums&file=viewtopic&t=76319
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-9-19 19:24 , Processed in 0.061917 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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