编译内核的时候出现以下bug:

lyeeer@lyeeer:/usr/src/linux-4.15.0-45$ 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:537: recipe for target 'menuconfig' failed
make: *** [menuconfig] Error 2

然后按照提示&百度,很显然通过下面的语句装上这个ncurses库就ok了,但是我大概将这个库反复装了十遍(包括百度里相关的不相关的库装了个遍,只要大家有提到的,我都无脑安装了)

lyeeer@lyeeer:/usr/src/linux-4.15.0-45$ sudo apt-get install libncurses5-dev

装完还是报错,结果试了好多好多次,发现是权限问题。

lyeeer@lyeeer:/usr/src/linux-4.15.0-45$ sudo make menuconfig

这样就ok了。。。长个记性

01-20 17:46