IMX6 make menuconfig提示’make menuconfig’ requires the ncurses libraries 错误
微信公众号:幼儿园的学霸
个人的学习笔记,关于OpenCV,关于机器学习, …。问题或建议,请公众号留言;
这两天在IMX6平台上倒腾MAX9288和MAX96705,涉及到内核编译,在执行make menuconfig
时,遇到以下错误:
liheng@liheng:~/IMX6/linux-3.14.52$ 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.
***
/home/liheng/IMX6/linux-3.14.52/scripts/kconfig/Makefile:199: recipe for target 'scripts/kconfig/dochecklxdialog' failed
make[1]: *** [scripts/kconfig/dochecklxdialog] Error 1
Makefile:514: recipe for target 'menuconfig' failed
make: *** [menuconfig] Error 2
根据提示来说,缺少ncurses libraries,按照网上教程,安装libncurses5-dev
即可,但是实际发现,安装完毕之后问题仍然存在,经过搜索,最终解决方案为安装一堆的该库,命令如下:
sudo apt install lib32ncurses5 lib32ncurses5-dev lib32ncursesw5 lib32ncursesw5-dev lib32tinfo-dev lib32tinfo5 libcunit1-ncurses libcunit1-ncurses-dev libncurses5 libncurses5-dbg libncurses5-dev libncursesw5 libncursesw5-dbg libncursesw5-dev
安装完毕之后,再次执行make menuconfig
,问题即可解决,熟悉的界面如下: