Linux kernel进行编译时提示No rule to make target `menc

Windows下下载了 linux-2.6.37内核源码,拷贝到U盘上,通过mount挂载到了虚拟机里的CentOS 5.5系统上。通过putty使用host-only方式连接到虚拟机,进行操作。

在/mnt/下建立目录挂载U盘,拷贝内核压缩包到/mnt/kernel下面,tar解压,进入linux-2.6.37目录下。运行make menconfig,提示:

make[1]: *** No rule to make target `menconfig'.  Stop.
截图如下:

对于这个错误有的说需要在usr/src目录下进行。但是cp文件到usr/src目录下,仍旧无法运行make menconfig。

怀疑内核文件损坏,重新下了最新的一份。但是报错情况依旧:(

好在make config。为了体验一下,直接全部回车默认。。。。。

生成config了。但是make的时候有提示:

make: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'.  Stop.

Linux kernel进行编译时提示No rule to make target `menconfig'.

Linux kernel进行编译时提示No rule to make target `menconfig'.

目前还未找到解决办法。先记下了 :(

//刚刚有看了看发现make时候报错是因为找不到.config了。记得明明生成的了。生成后我还用vim .config看了看。不知道去哪里了。再次用make config  (make menconfig 依然无法使用。)生成.config文件。然后正在make中

//怀着不死心的态度又到网上看了看。还是有人说要到/usr/src目录下面。于是临睡前再尝试一下

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wwxgjg.html