进入内核目录,编译内核,执行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.
***
scripts/kconfig/Makefile:202: recipe for target 'scripts/kconfig/dochecklxdialog' failed
make[1]: *** [scripts/kconfig/dochecklxdialog] Error 1
Makefile:520: recipe for target 'menuconfig' failed
make: *** [menuconfig] Error 2
1.看.bashrc
2.. 根据错误提示解决:apt-get install ncurses-devel ,再次出现错误:
E: Unable to locate package ncurses-devel
3. 出现上面的原因是因为系统里面缺少libncurses 库,那就安装一下:sudo apt-get install libncurses-dev
4.再次make menuconfig ,成功: