iamiking 发表于 2003-3-20 21:32:33

为什么我不能编译内核了?

大侠们,我今天编译内核
用make menucofig命令
之后用make dep
make bzImage命令
但是最好告诉我出错了
我重新启动之后
再以root身份登录
想用make menucofig
但是告诉我
make:×××No rule to make target 'menuconfig' .stop.
大侠们你们遇到过这种情况没有???
我应该怎么办?

Dragonfly 发表于 2003-3-20 22:58:42

which kernel version u use?
which error u meet when u run make bzImage
can u re-uncompress the kernel source package and try again?

iamiking 发表于 2003-3-20 23:03:38

red hat 8.0
内核版本应该是2.4吧
还有今天我在另外一台机子上
用make menuconfig
窗口打开后我选的退出
就退出来了
再用make menuconfig
就出现了
make:×××No rule to make target 'menuconfig' .stop.
:(

Dragonfly 发表于 2003-3-20 23:07:54

check if your Makefile is still there under linux directory. versy strange, i never meet this before. although i only use 3 month rh8 before i switch to gentoo.

iamiking 发表于 2003-3-21 08:59:18

我把linux-2.4目录下的Makefile删掉了,
结果还是不管用

pjc5520 发表于 2003-3-21 12:24:04

用make xconfig试试。

Dragonfly 发表于 2003-3-21 12:30:38

我把linux-2.4目录下的Makefile删掉了,
结果还是不管用

??? Makefile is the core file for compiling. u can not delete it. so now u have to redownload source and compile.

suggest u to read kernel how to before u do kernel compiling work. you can know more information about make, makefile, config. may solve your problem.

sjhs 发表于 2003-3-22 15:01:21

我有一次出现那个提示,找了半天原因。 原来那几个命令必须在/usr/src/linux-xxx
即你要编译的新内核的目录下用。 

Dragonfly 发表于 2003-3-23 01:57:20

basically u can uncompress your kernel source code under any directory, although /usr/src is recommended. u need enter that directory before you run make config, dep, zImage or another command.
页: [1]
查看完整版本: 为什么我不能编译内核了?