学习Linux内核编译的时候,再尝试menuconfig时发生错误如下:

 
  
  1. littlemo@littlemo-T400:~/iData/LinuxKernel/linux-2.6.34.14$ make menuconfig 
  2.  *** Unable to find the ncurses libraries or the 
  3.  *** required header files. 
  4.  *** 'make menuconfig' requires the ncurses libraries. 
  5.  ***  
  6.  *** Install ncurses (ncurses-devel) and try again. 
  7.  ***  
  8. make[1]: *** [scripts/kconfig/dochecklxdialog] 错误 1 
  9. make: *** [menuconfig] 错误 2 

解决方法:

缺少调用文件,安装上即可

 

 
  
  1. sudo apt-get install ncurses-dev