由于课程需要,需要编译linux内核3.5.4,过程如下:
1,下载kernel,解压,进入内核查看文件
#wget http://www.kernel.org/pub/linux/kernel/v3.0/linux-3.5.4.tar.bz
#tar xjvf linux-3.5.4.tar.bz2
cd linux-3.5.4
2,
清除以前编译时留下的配置文件,最后用基于文本的选单式配置界面进行内核配置,
$make mrproper
$make menuconfig
提示错误,
*** 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] 错误 1
make: *** [menuconfig] 错误 2
解决办法:1. 根据提示,需要安装ncurses-devel的库,但是,通过命令
s udo apt-cache search ncurses
查到N多信息;
光是以libncurses开头的就有这么多
- libncurses-gst - Ncurses bindings for GNU Smalltalk
- libncurses-ruby - Transitional package for ruby-ncurses
- libncurses-ruby1.8 - Transitional package for ruby-ncurses
- libncurses-ruby1.9 - Transitional package for ruby-ncurses
- libncurses-ruby1.9.1 - Transitional package for ruby-ncurses
- libncursesada-doc - Ada binding to the ncurses text interface library: documentation
- libncursesada1 - Ada binding to the ncurses text interface library: shared library
- libncursesada1-dbg - Ada binding to the ncurses text interface library: debug symbols
- libncursesada1-dev - Ada binding to the ncurses text interface library: development
运行完make menuconfig即可。
3,