移植内核时make menuconfig 提示错误


终端输入make menuconfig 出现以下错误

  1. *** Unable to find the ncurses libraries or the  
  2.  *** required header files.  
  3.  *** 'make menuconfig' requires the ncurses libraries.  
  4.  ***   
  5.  *** Install ncurses (ncurses-devel) and try again.  
  6.  ***   
  7. make[1]: *** [scripts/kconfig/dochecklxdialog] Error 1  
  8. make: *** [menuconfig] Error 2  

原来是Ubuntu系统没有ncurses这个库。

解决方法:

sudo apt-get install ncurses-dev

那么ncurses这个库到底是什么东东,起什么作用呢?带着疑问百度了一下。

curses构成了一个工作在底层终端代码之上的封装,并向用户提供了一个灵活高效的API(Application Programming Interface 应用程序接口)。它提供了移动光标,建立窗口,产生颜色,处理鼠标操作等功能。使程序员编写应用程序不需要关心那些底层的终端操作。

 

相关内容