Chinaunix首页 | 论坛 | 博客
  • 博客访问: 329446
  • 博文数量: 161
  • 博客积分: 245
  • 博客等级: 二等列兵
  • 技术积分: 694
  • 用 户 组: 普通用户
  • 注册时间: 2012-09-08 13:19
文章分类

全部博文(161)

文章存档

2016年(3)

2015年(31)

2014年(11)

2013年(107)

2012年(9)

分类: 系统运维

2013-03-31 18:13:24

通常在安装完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!


阅读(490) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~