内核使用make menuconfig命令,出现:‘make menuconfig‘ requires the ncurses libraries.的解决办法

在Linux内核文件夹中使用命令make menuconfig,出现如下情况:

topeet@ubuntu:~/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就可以用了

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值