tp@ubuntu:~/Downloads$ uname -a
Linux ubuntu 3.11.0-12-generic #19-Ubuntu SMP Wed Oct 9 16:12:00 UTC 2013 i686 i686 i686 GNU/Linuxtp@ubuntu:~$ tar -xjvf linux-3.0.4.tar.bz2
tp@ubuntu:~$ ls
Desktop Downloads linux-3.0.4 Music Public Videos
Documents examples.desktop linux-3.0.4.tar.bz2 Pictures Templates
tp@ubuntu:~$ cd linux-3.0.4/
tp@ubuntu:~/linux-3.0.4$ sudo make menuconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
*** Unable to find the ncurses libraries or the
*** required header files.
*** 'make menuconfig' requires the ncurses libraries.
***
*** Install ncurses (ncurses-devel) and try again.
***
make[1]: *** [scripts/kconfig/dochecklxdialog] Error 1
make: *** [menuconfig] Error 2
tp@ubuntu:~/linux-3.0.4$
tp@ubuntu:~/linux-3.0.4$ sudo apt-get update
tp@ubuntu:~/linux-3.0.4$ sudo apt-cache search libncurses
libncurses5 - shared libraries for terminal handling
libncurses5-dbg - debugging/profiling libraries for ncurses
libncurses5-dev - developer's libraries for ncurses
libncursesw5 - shared libraries for terminal handling (wide character support)
tp@ubuntu:~/linux-3.0.4$ sudo apt-get install libncurses5-dev
tp@ubuntu:~/linux-3.0.4$ make menuconfig
本文记录了在Ubuntu环境中尝试编译Linux 3.0.4内核的过程,包括安装必要的ncurses库来启用菜单配置,以及解决过程中遇到的问题。

被折叠的 条评论
为什么被折叠?



