欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

manuconfig错误 Unable to find the ncurses libraries or the  required header files

程序员文章站 2022-03-11 22:52:01
...

make menuconfig之后错误如下所示:

[email protected]:~/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

 

相关标签: ubuntu配置