linux之Unable to find the ncurses libraries or the required header files.錯誤解決辦法

環境:ubuntu11.10

在內核解壓後,要寫該配置單,#make menuconfig  出現如下錯誤:

root@arthur-virtual-machine:/opt/TQ210/Kernel_2.6.35.7_TQ210_for_Linux_v1.1# 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] 錯誤 1

make: *** [menuconfig] 錯誤 2


解決辦法:

      原來是ubuntu系統沒有ncurses這個庫。

apt-get install ncurses-dev

那麼ncurses這個庫到底是什麼東東,起什麼作用呢?

  ncurses構成了一個工作在底層終端代碼之上的封裝,並向用戶提供了一個靈 活高效的API(Application Programming Interface 應用程序接口)。它提供了移 動光 標,建立窗口,產生顏色,處理鼠標操作等功能。使程序員編寫應用程序不 需要關心那些底層的終端操作。



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章