您的位置:首页 > 大数据 > 人工智能

ubuntu9.10 Install ncurses (ncurses-devel) and try again 问题

2013-02-24 21:08 495 查看
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库

解决方法:

一、

sudo apt-get install ncurses-dev

or 

sudo aptitude install libncurses5-dev

 or

sudo apt-get install libncurses5-dev

可用软件源如下: 

deb http://mirrors.163.com/ubuntu/ natty main universe restricted multiverse 

deb-src http://mirrors.163.com/ubuntu/ natty main universe restricted multiverse 

deb http://mirrors.163.com/ubuntu/ natty-security universe main multiverse restricted 

deb-src http://mirrors.163.com/ubuntu/ natty-security universe main multiverse restricted 

deb http://mirrors.163.com/ubuntu/ natty-updates universe main multiverse restricted 

deb http://mirrors.163.com/ubuntu/ natty-proposed universe main multiverse restricted 

deb-src http://mirrors.163.com/ubuntu/ natty-proposed universe main multiverse restricted 

deb http://mirrors.163.com/ubuntu/ natty-backports universe main multiverse restricted 

deb-src http://mirrors.163.com/ubuntu/ natty-backports universe main multiverse restricted 

deb-src http://mirrors.163.com/ubuntu/ natty-updates universe main multiverse restricted

Ncurses定义如下: 引用 http://www.oschina.net/p/ncurses/

Ncurses是一个能提供功能键定义(快捷键),屏幕绘制以及基于文本终端的图形互动功能的动态库。

Ncurses是一个能提供基于文本终端窗口功能的动态库. Ncurses可以:
只要您喜欢,您可以使用整个屏幕
创建和管理一个窗口
使用8种不同的彩色
为您的程序提供鼠标支持
使用键盘上的功能键

Ncurses可以在任何遵循ANSI/POSIX标准的UNIX系统上运行,除此之外,它还可以从系统数据库中检测终端的属性, 并且自动进行调整,提供一个不受终端约束的接口.因此,Ncurses可以在不同的系统平台和不同的终端上工作的非常好.

mc工具集就是一个用ncurses写的很好的例子,而且在终端上系统核心配置的界面同样是用ncurses编写的. 下面就是它们的截图:



二、

下载ncurses-devel rpm 包

下载地址:http://138.232.1.20/linux/rpm2html/centos/5/os/i386/CentOS/ncurses-devel-5.5-24.20060715.i386.html

rpm -ivh ncurses-devel-5.5-24.20060715.rpm
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: