内核使用make menuconfig命令,出现:‘make menuconfig‘ requires the ncurses libraries.的解决办法
程序员文章站
2022-03-11 22:52:07
...
在Linux内核文件夹中使用命令make menuconfig,出现如下情况:
[email protected]:~/android4.0/iTop4412_Kernel_3.0$ 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
提示:‘make menuconfig’ requires the ncurses libraries.
意思是说需要ncurses libraries,只要安装libncurses5-dev就好了
然后使用以下命令安装即可
sudo apt-get install libncurses5-dev
结果又出现
Reading package lists... Done
Building dependency tree
Reading state information... Done
libncurses5-dev is already the newest version.
The following package was automatically installed and is no longer required:
thunderbird-globalmenu
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 592 not upgraded.
其实只要先安装aptitude,再把apt-get换成aptitude安装libncurses5-dev就好了
sudo apt-get install aptitude
sudo aptitude install libncurses5-dev
最后运行make menuconfig就可以用了
下一篇: Android开发 UI组件