manuconfig錯誤 Unable to find the ncurses libraries or the  required header files

make menuconfig之後錯誤如下所示:

taozhang@taozhang-virtual-machine:~/share/4412/buildroot/buildroot-2015.05$ make menuconfig
mkdir -p /home/taozhang/share/4412/buildroot/buildroot-2015.05/output/build/buildroot-config/lxdialog
PKG_CONFIG_PATH="" make CC="/usr/bin/gcc" HOSTCC="/usr/bin/gcc" \
        obj=/home/taozhang/share/4412/buildroot/buildroot-2015.05/output/build/buildroot-config -C support/kconfig -f Makefile.br mconf
make[1]: 正在進入目錄 `/home/taozhang/share/4412/buildroot/buildroot-2015.05/support/kconfig'
 *** 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]: *** [/home/taozhang/share/4412/buildroot/buildroot-2015.05/output/build/buildroot-config/dochecklxdialog] 錯誤 1
make[1]:正在離開目錄 `/home/taozhang/share/4412/buildroot/buildroot-2015.05/support/kconfig'
make: *** [/home/taozhang/share/4412/buildroot/buildroot-2015.05/output/build/buildroot-config/mconf] 錯誤 2

原因是缺少一個庫文件,可以使用如下命令解決:

sudo apt-get install ncurses-dev

 

發佈了106 篇原創文章 · 獲贊 9 · 訪問量 4萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章