打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
linux make menuconfig

通常在安装完Linux系统后,在编译kernel使用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

 

出现该错误的原因是:在使用menuconfig时需要ncurses库的支持,而该库包含ncurses和ncurses-devel两个包,大部分情况ncurses包会跟随系统安装好,而ncurses-devel包根据安装系统时你的选择。可以使用命令查看他们有没有安装:

#rpm -q ncurses
#rpm -q ncurses-devel

如果安装好了会显示类似如下:
ncurses-5.6-16.20080301.fc9.i386
ncurses-devel-5.6-16.20080301.fc9.i386


如果没安装则可使用yum命令直接在线安装(注意要求联网):

[root@localhost linux-2.6.34]# yum install ncurses

Loaded plugins: presto, refresh-packagekit
Setting up Install Process
Package ncurses-5.6-16.20080301.fc9.i386 already installed and latest version
Nothing to do
[root@localhost linux-2.6.34]
# yum install ncurses-devel

Loaded plugins: presto, refresh-packagekit
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package ncurses-devel-5.6-16.20080301.fc9.i386 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
ncurses-devel-5.6-16.20080301.fc9.i386 fedora 608 k

Transaction Summary
================================================================================
Install 1 Package(s)
Upgrade 0 Package(s)

Total download size: 608 k
Is this ok [y/N]: y
Downloading Packages:
Setting up and reading Presto delta metadata
Processing delta metadata
Package(s) data still to download: 608 k
ncurses-devel-5.6-16.20080301.fc9.i386.rpm | 608 kB 00:04
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB has been altered since the last yum transaction.
Installing : ncurses-devel-5.6-16.20080301.fc9.i386 1/1

Installed:
ncurses-devel-5.6-16.20080301.fc9.i386

 Complete!

安装完成后在试make menuconfig,错误排除了。

[root@localhost linux-2.6.34]
# make menuconfig

OK!

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
Linux流量监控工具
Kevin Feliksa - Procedure - SystemTap install...
linux yum 命令 | 菜鸟教程
fedora17 安装skyeye 1.3.5(转载)
linux内核编程4部曲之一:linux内核编译(2.6.12版本)图文解说
make menuconfig时提示“error opening terminal ”的解决方法
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服