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

来源:互联网 发布:小口栓淘宝暗语 编辑:程序博客网 时间:2024/05/16 10:29

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编写的. 下面就是它们的截图:

[Midnight Commander]


二、

下载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



原创粉丝点击