終端輸入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.
- ***
- make[1]: *** [scripts/kconfig/dochecklxdialog] Error 1
- make: *** [menuconfig] Error 2
原來是Ubuntu系統沒有ncurses這個庫。
解決方法:
sudo apt-get install ncurses-dev
那麼ncurses這個庫到底是什麼東東,起什麼作用呢?帶著疑問百度了一下。
curses構成了一個工作在底層終端代碼之上的封裝,並向用戶提供了一個靈活高效的API(Application Programming Interface 應用程序接口)。它提供了移動光標,建立窗口,產生顏色,處理鼠標操作等功能。使程序員編寫應用程序不需要關心那些底層的終端操作。