歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux基礎 >> Linux教程

Ubuntu 11.10安裝BusyBox:致命錯誤: curses.h:沒有那個文件或目錄

問題:
 [email protected]:~# cd /root/桌面/busybox-1.19.3
[email protected]:~/桌面/busybox-1.19.3# make menuconfig
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/basic/split-include
scripts/basic/split-include.c: 在函數‘main’中:
scripts/basic/split-include.c:134:11: 警告: 忽略聲明有 warn_unused_result 屬性的‘fgets’的返回值 [-Wunused-result]
  HOSTCC  scripts/basic/docproc
  GEN     include/applets.h
  GEN     include/usage.h
  GEN     applets/Kbuild
  GEN     coreutils/Kbuild
  GEN     coreutils/Config.in
  GEN     coreutils/libcoreutils/Kbuild
  GEN     procps/Kbuild
  GEN     procps/Config.in
  GEN     mailutils/Kbuild
  GEN     mailutils/Config.in
  GEN     e2fsprogs/Kbuild
  GEN     e2fsprogs/Config.in
  GEN     e2fsprogs/old_e2fsprogs/Kbuild
  GEN     e2fsprogs/old_e2fsprogs/Config.in
  GEN     e2fsprogs/old_e2fsprogs/uuid/Kbuild
  GEN     e2fsprogs/old_e2fsprogs/blkid/Kbuild
  GEN     e2fsprogs/old_e2fsprogs/e2p/Kbuild
  GEN     e2fsprogs/old_e2fsprogs/ext2fs/Kbuild
  GEN     libbb/Kbuild
  GEN     libbb/Config.in
  GEN     printutils/Kbuild
  GEN     printutils/Config.in
  GEN     libpwdgrp/Kbuild
  GEN     debianutils/Kbuild
  GEN     debianutils/Config.in
  GEN     shell/Kbuild
  GEN     shell/Config.in
  GEN     loginutils/Kbuild
  GEN     loginutils/Config.in
  GEN     sysklogd/Kbuild
  GEN     sysklogd/Config.in
  GEN     console-tools/Kbuild
  GEN     console-tools/Config.in
  GEN     init/Kbuild
  GEN     init/Config.in
  GEN     scripts/Kbuild
  GEN     runit/Kbuild
  GEN     runit/Config.in
  GEN     miscutils/Kbuild
  GEN     miscutils/Config.in
  GEN     archival/Kbuild
  GEN     archival/Config.in
  GEN     archival/libarchive/Kbuild
  GEN     modutils/Kbuild
  GEN     modutils/Config.in
  GEN     selinux/Kbuild
  GEN     selinux/Config.in
  GEN     util-linux/Kbuild
  GEN     util-linux/Config.in
  GEN     util-linux/volume_id/Kbuild
  GEN     editors/Kbuild
  GEN     editors/Config.in
  GEN     findutils/Kbuild
  GEN     findutils/Config.in
  GEN     networking/Kbuild
  GEN     networking/Config.in
  GEN     networking/libiproute/Kbuild
  GEN     networking/udhcp/Kbuild
  GEN     networking/udhcp/Config.in
  HOSTCC  scripts/kconfig/conf.o
scripts/kconfig/conf.c: 在函數‘conf_choice’中:
scripts/kconfig/conf.c:354:9: 警告: 忽略聲明有 warn_unused_result 屬性的‘fgets’的返回值 [-Wunused-result]
scripts/kconfig/conf.c: 在函數‘conf_askvalue’中:
scripts/kconfig/conf.c:106:8: 警告: 忽略聲明有 warn_unused_result 屬性的‘fgets’的返回值 [-Wunused-result]
  HOSTCC  scripts/kconfig/kxgettext.o
  HOSTCC  scripts/kconfig/mconf.o
scripts/kconfig/mconf.c: 在函數‘show_textbox’中:
scripts/kconfig/mconf.c:839:7: 警告: 忽略聲明有 warn_unused_result 屬性的‘write’的返回值 [-Wunused-result]
scripts/kconfig/mconf.c: 在函數‘exec_conf’中:
scripts/kconfig/mconf.c:473:6: 警告: 忽略聲明有 warn_unused_result 屬性的‘pipe’的返回值 [-Wunused-result]
  SHIPPED scripts/kconfig/zconf.tab.c
  SHIPPED scripts/kconfig/lex.zconf.c
  SHIPPED scripts/kconfig/zconf.hash.c
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/mconf
  HOSTCC  scripts/kconfig/lxdialog/checklist.o
In file included from scripts/kconfig/lxdialog/checklist.c:24:0:
scripts/kconfig/lxdialog/dialog.h:31:20: 致命錯誤: curses.h:沒有那個文件或目錄
編譯中斷。
make[2]: *** [scripts/kconfig/lxdialog/checklist.o] 錯誤 1
make[1]: *** [menuconfig] 錯誤 2
make: *** [menuconfig] 錯誤 2
[email protected]:~/桌面/busybox-1.19.3#

相關閱讀:BusyBox各版本下載 http://www.linuxidc.com/Linux/2011-08/40704.htm

解決辦法:
[email protected]:~/桌面/busybox-1.19.3# apt-get install libncurses5-dev

原因:
Ubuntu系統中缺少一個套件 ncurses devel ,把此套件安裝下即可。

Copyright © Linux教程網 All Rights Reserved