make menuconfig出错(ncurses)解决方案

最近学习Linux  ARM开发,按着手册上的说明移植内核,在建立编译环境时

首先在内核最外层的目录下使用make menuconfig命令,例如:

[root@wanyao linux-2.6.30.4]# 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] 错误 1
make: *** [menuconfig] 错误2

原因是:缺少ncurses-devel库文件

在系统安装时,会默认安装ncurses,但是没有安装ncurses-devel

可以用rpm -q命令查看:

输入rpm -q ncurses出现一下信息说明已经安装了ncurses:

[root@wanyao linux-2.6.30.4]# rpm -q ncurses
ncurses-5.7-3.20090208.el6.i686

但是,用 rpm -q ncurses-devel命令时,却查不到ncurses-devel的版本信息,所以需安装和ncurses版本一致的ncurses-devel,网上下载ncurses-devel-5.7-3.20090208.el6.i686.rpm

利用

[root@wanyao linux-2.6.30.4]#rmp -ivh ncurses-devel-5.7-3.20090208.el6.i686.rpm

安装完ncurses-devel后再make menuconfig没有问题了。

总结:该问题主要在安装ncurses-devel上,注意版本信息要与ncurses一致









转载于:https://www.cnblogs.com/wanyao/archive/2011/09/20/2182066.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值