歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux編程 >> Linux編程 >> 移植內核時make menuconfig 提示錯誤

移植內核時make menuconfig 提示錯誤

日期:2017/3/1 10:18:23   编辑:Linux編程

終端輸入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 應用程序接口)。它提供了移動光標,建立窗口,產生顏色,處理鼠標操作等功能。使程序員編寫應用程序不需要關心那些底層的終端操作。

Copyright © Linux教程網 All Rights Reserved