RHEL5 make menuconfig 出现 error: curses.h: No such file or directory的解决方法

原创 2013年12月02日 11:04:05

在使用命令:make menuconfig的时候出现以下问题

In file included from scripts/kconfig/lxdialog/checklist.c:24:scripts/kconfig/lxdialog/dialog.h:32:20: error: curses.h: No such file or directoryIn file included from scripts/kconfig/lxdialog/checklist.c:24:scripts/kconfig/lxdialog/dialog.h:97: error: expected specifier-qualifier-list before ‘chtype’scripts/kconfig/lxdialog/dialog.h:187: error: expected ‘)’ before ‘*’ tokenscripts/kconfig/lxdialog/dialog.h:194: error: expected ‘)’ before ‘*’ tokenscripts/kconfig/lxdialog/dialog.h:196: error: expected ‘)’ before ‘*’ tokenscripts/kconfig/lxdialog/dialog.h:197: error: expected ‘)’ before ‘*’ tokenscripts/kconfig/lxdialog/dialog.h:198: error: expected ‘)’ before ‘*’ tokenscripts/kconfig/lxdialog/dialog.h:199: error: expected ‘)’ before ‘*’ tokenscripts/kconfig/lxdialog/dialog.h:201: error: expected ‘)’ before ‘*’ tokenscripts/kconfig/lxdialog/checklist.c:31: error: expected ‘)’ before ‘*’ tokenscripts/kconfig/lxdialog/checklist.c:59: error: expected ‘)’ before ‘*’ tokenscripts/kconfig/lxdialog/checklist.c:95: error: expected ‘)’ before ‘*’ tokenscripts/kconfig/lxdialog/checklist.c: In function ‘dialog_checklist’:scripts/kconfig/lxdialog/checklist.c:116: error: ‘WINDOW’ undeclared (first use in this function)scripts/kconfig/lxdialog/checklist.c:116: error: (Each undeclared identifier is reported only oncescripts/kconfig/lxdialog/checklist.c:116: error: for each function it appears in.)scripts/kconfig/lxdialog/checklist.c:116: error: ‘dialog’ undeclared (first use in this function)scripts/kconfig/lxdialog/checklist.c:116: error: ‘list’ undeclared (first use in this function)scripts/kconfig/lxdialog/checklist.c:116: warning: left-hand operand of comma expression has no effectscripts/kconfig/lxdialog/checklist.c:129: warning: implicit declaration of function ‘getmaxy’scripts/kconfig/lxdialog/checklist.c:129: error: ‘stdscr’ undeclared (first use in this function)scripts/kconfig/lxdialog/checklist.c:130: error: ‘KEY_MAX’ undeclared (first use in this function)scripts/kconfig/lxdialog/checklist.c:131: warning: implicit declaration of function ‘getmaxx’scripts/kconfig/lxdialog/checklist.c:137: error: ‘COLS’ undeclared (first use in this function)scripts/kconfig/lxdialog/checklist.c:138: error: ‘LINES’ undeclared (first use in this function)scripts/kconfig/lxdialog/checklist.c:140: warning: implicit declaration of function ‘draw_shadow’scripts/kconfig/lxdialog/checklist.c:142: warning: implicit declaration of function ‘newwin’scripts/kconfig/lxdialog/checklist.c:143: warning: implicit declaration of function ‘keypad’scripts/kconfig/lxdialog/checklist.c:143: error: ‘TRUE’ undeclared (first use in this function)scripts/kconfig/lxdialog/checklist.c:145: warning: implicit declaration of function ‘draw_box’scripts/kconfig/lxdialog/checklist.c:146: error: ‘struct dialog_color’ has no member named ‘atr’scripts/kconfig/lxdialog/checklist.c:146: error: ‘struct dialog_color’ has no member named ‘atr’scripts/kconfig/lxdialog/checklist.c:147: warning: implicit declaration of function ‘wattrset’scripts/kconfig/lxdialog/checklist.c:147: error: ‘struct dialog_color’ has no member named ‘atr’scripts/kconfig/lxdialog/checklist.c:148: warning: implicit declaration of function ‘mvwaddch’scripts/kconfig/lxdialog/checklist.c:150: warning: implicit declaration of function ‘waddch’scripts/kconfig/lxdialog/checklist.c:151: error: ‘struct dialog_color’ has no member named ‘atr’scripts/kconfig/lxdialog/checklist.c:154: warning: implicit declaration of function ‘print_title’scripts/kconfig/lxdialog/checklist.c:156: error: ‘struct dialog_color’ has no member named ‘atr’scripts/kconfig/lxdialog/checklist.c:157: warning: implicit declaration of function ‘print_autowrap’scripts/kconfig/lxdialog/checklist.c:164: warning: implicit declaration of function ‘subwin’scripts/kconfig/lxdialog/checklist.c:171: error: ‘struct dialog_color’ has no member named ‘atr’scripts/kconfig/lxdialog/checklist.c:171: error: ‘struct dialog_color’ has no member named ‘atr’scripts/kconfig/lxdialog/checklist.c:189: warning: implicit declaration of function ‘print_item’scripts/kconfig/lxdialog/checklist.c:192: warning: implicit declaration of function ‘print_arrows’scripts/kconfig/lxdialog/checklist.c:195: warning: implicit declaration of function ‘print_buttons’scripts/kconfig/lxdialog/checklist.c:197: warning: implicit declaration of function ‘wnoutrefresh’scripts/kconfig/lxdialog/checklist.c:199: warning: implicit declaration of function ‘doupdate’scripts/kconfig/lxdialog/checklist.c:202: warning: implicit declaration of function ‘wgetch’scripts/kconfig/lxdialog/checklist.c:210: error: ‘KEY_UP’ undeclared (first use in this function)scripts/kconfig/lxdialog/checklist.c:210: error: ‘KEY_DOWN’ undeclared (first use in this function)scripts/kconfig/lxdialog/checklist.c:220: error: ‘FALSE’ undeclared (first use in this function)scripts/kconfig/lxdialog/checklist.c:221: warning: implicit declaration of function ‘scrollok’scripts/kconfig/lxdialog/checklist.c:222: warning: implicit declaration of function ‘wscrl’scripts/kconfig/lxdialog/checklist.c:232: warning: implicit declaration of function ‘wrefresh’scripts/kconfig/lxdialog/checklist.c:293: warning: implicit declaration of function ‘delwin’scripts/kconfig/lxdialog/checklist.c:297: error: ‘KEY_LEFT’ undeclared (first use in this function)scripts/kconfig/lxdialog/checklist.c:298: error: ‘KEY_RIGHT’ undeclared (first use in this function)scripts/kconfig/lxdialog/checklist.c:310: warning: implicit declaration of function ‘on_key_esc’scripts/kconfig/lxdialog/checklist.c:312: error: ‘KEY_RESIZE’ undeclared (first use in this function)make[1]: *** [scripts/kconfig/lxdialog/checklist.o] Error 1make: *** [menuconfig] Error 2


出现此问题的原因是缺少相关库,需要安装ncurses-devel-5.5-24.20060715.i386.rpm,根据系统的版本不同,库的名字可能不同

RHEL5中的解决方法:

相关的库在镜像中已经存在,我们直接获取安装即可

首先挂载CDROM,创建一个cdrom的目录,使用命令#mount  /dev/cdrom  cdrom/,出现mount: block device /dev/cdrom is write-protected, mounting read-only的打印,正常。

然后,使用命令#find  .  -name   "*curses*"  找到相关的库文件,

./Server/ncurses-5.5-24.20060715.i386.rpm
./Server/ncurses-devel-5.5-24.20060715.i386.rpm
./Server/php-ncurses-5.1.6-15.el5.i386.rpm


最后使用命令安装

[root@localhost cdrom]# rpm -ivh Server/ncurses-devel-5.5-24.20060715.i386.rpm 
warning: Server/ncurses-devel-5.5-24.20060715.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing...                ########################################### [100%]
   1:ncurses-devel          ########################################### [100%]
[root@localhost cdrom]# 


然后make menuconfig命令就可以正常工作了

版权声明:本文为博主原创文章,未经博主允许不得转载。

menuconfig Linux Error: curses.h: No such file or directory Problem Solution

menuconfig Linux Error: curses.h: No such file or directory Problem Solution scripts/kconfig/lx...
  • wuzuyu365
  • wuzuyu365
  • 2014年01月05日 14:15
  • 1270

scripts/kconfig/lxdialog/dialog.h:26:20: fatal error: curses.h: No such file or directory

Q:scripts/kconfig/lxdialog/dialog.h:26:20: fatal error: curses.h: No such file or directory A:解决办法:...
  • MingLLu
  • MingLLu
  • 2016年09月25日 09:28
  • 3585

编译Busybox时,出现错误fatal error: curses.h: No such file or directory

[转载] http://www.cnblogs.com/sodu88/p/linux-error-cursesh-no-such-file-directory.html 本人所用的linux内核是l...
  • u010186001
  • u010186001
  • 2017年05月15日 21:31
  • 887

Linux错误 curses.h:No such file or directory解决方案

在Linux上编译代码时,遇到以下错误信息: curses.h:No such file or directory 查阅相关资料,整理了下解决方案: 在Debian/ Ubuntu Linux系...
  • chentao1206
  • chentao1206
  • 2016年04月29日 11:39
  • 832

内核编译错误:crypto/signature/ksign-publickey.c:2:17: error: key.h: No such file or directory

原链接作者写的简介;转载链接作者图形化说明了一下,很详细。我修改了一部分的内核代码,急切想看看有没有运行效果时,结果编译出问题了。 下面是错误提示: CC crypto/mpi/mpiu...
  • ai297313
  • ai297313
  • 2015年04月20日 22:51
  • 1360

9748:error:02001002:system library:fopen:No such file or directory:.\crypto\bio\bss_file.c:168:fopen

转自VC错误:http://www.vcerror.com/?p=2027 问题描述: 用openssl自做CA自签发SSL证书,但执行命令: openssl req -new -key ser...
  • swanabin
  • swanabin
  • 2015年09月14日 16:43
  • 13042

解决:busybox编译 fatal error: curses.h: 没有那个文件或目录

ubuntu11.04下编译busybox 执行make menuconfig时出现如下错误 @ubuntu:/home/dev/busybox-1.19.3# make menuconfig ...
  • ustcxjt
  • ustcxjt
  • 2012年03月06日 21:21
  • 11254

curses.h: 没有那个文件或目录 解决办法

今天下载了树莓派内核源码,无法配置内核(make menuconfig),提示“curses.h: 没有那个文件或目录”。 解决办法:安装ncurses即可 sudo apt-get install ...
  • yueashuxia
  • yueashuxia
  • 2016年11月03日 09:32
  • 3098

ubuntu14.04下编译busybox出现fatal error: curses.h: 没有那个文件或目录错误

ubuntu14.04下编译busybox 执行make menuconfig时出现如下错误 @ubuntu:/home/dev/busybox-1.19.3# make menuconf...
  • lutherarcher
  • lutherarcher
  • 2017年03月25日 18:30
  • 669

linux 内核编译时出现scripts/sign-file.c:23:30: fatal error: openssl/opensslv.h错误的解决办法

经过几次倒腾之后,发现了解决办法其实比较简单,ubuntu下缺少了部分如下的组件,安装一下即可sudo apt-get install libssl-dev...
  • MingLLu
  • MingLLu
  • 2016年03月23日 09:49
  • 9629
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:RHEL5 make menuconfig 出现 error: curses.h: No such file or directory的解决方法
举报原因:
原因补充:

(最多只允许输入30个字)