码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2015-11-26 22:57:43      阅读:250      评论:0      收藏:0      [点我收藏+]

标签:

 1 scripts/kconfig/mconf.c: In function ‘exec_conf’:
 2 scripts/kconfig/mconf.c:481:2: warning: ignoring return value of ‘pipe’, declared with attribute warn_unused_result [-Wunused-result]
 3   pipe(pipefd);
 4   ^
 5   SHIPPED scripts/kconfig/zconf.tab.c
 6   SHIPPED scripts/kconfig/lex.zconf.c
 7   SHIPPED scripts/kconfig/zconf.hash.c
 8   HOSTCC  scripts/kconfig/zconf.tab.o
 9   HOSTLD  scripts/kconfig/mconf
10   HOSTCC  scripts/kconfig/lxdialog/checklist.o
11 In file included from scripts/kconfig/lxdialog/checklist.c:24:0:
12 scripts/kconfig/lxdialog/dialog.h:31:20: fatal error: curses.h: No such file or directory
13  #include CURSES_LOC
14                     ^
15 compilation terminated.
16 scripts/Makefile.host:120: recipe for target scripts/kconfig/lxdialog/checklist.o failed
17 make[2]: *** [scripts/kconfig/lxdialog/checklist.o] Error 1
18 /home/licg/linux_shared/tools/busybox-1.24.1/scripts/kconfig/Makefile:14: recipe for target menuconfig failed
19 make[1]: *** [menuconfig] Error 2
20 Makefile:443: recipe for target menuconfig failed
21 make: *** [menuconfig] Error 2

原因:出现该错误的原因是在使用menuconfig时,需要ncurses库的支持。

解决办法:sudo apt-get install libncurses5-dev libncursesw5-dev

详细参考:

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

 

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

标签:

原文地址:http://www.cnblogs.com/sodu88/p/linux-error-cursesh-no-such-file-directory.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!