yundanvyuan8110
yundanvyuan8110
采纳率100%
2015-10-23 06:20 阅读 2.5k
已采纳

安装ncdu时报错,ncurses.h没有找到

5

在CentOS7 64的系统上,具体报错信息如下:
[root@localhost ~]# tar -zxvf ncdu-1.11.tar.gz
ncdu-1.11/
ncdu-1.11/deps/
ncdu-1.11/deps/yopt.h
ncdu-1.11/deps/khash.h
ncdu-1.11/doc/
ncdu-1.11/doc/ncdu.pod
ncdu-1.11/src/
ncdu-1.11/src/browser.h
ncdu-1.11/src/delete.h
ncdu-1.11/src/dir.h
ncdu-1.11/src/dirlist.h
ncdu-1.11/src/exclude.h
ncdu-1.11/src/global.h
ncdu-1.11/src/help.h
ncdu-1.11/src/shell.h
ncdu-1.11/src/path.h
ncdu-1.11/src/util.h
ncdu-1.11/src/browser.c
ncdu-1.11/src/delete.c
ncdu-1.11/src/dirlist.c
ncdu-1.11/src/dir_common.c
ncdu-1.11/src/dir_export.c
ncdu-1.11/src/dir_import.c
ncdu-1.11/src/dir_mem.c
ncdu-1.11/src/dir_scan.c
ncdu-1.11/src/exclude.c
ncdu-1.11/src/help.c
ncdu-1.11/src/shell.c
ncdu-1.11/src/main.c
ncdu-1.11/src/path.c
ncdu-1.11/src/util.c
ncdu-1.11/Makefile.in
ncdu-1.11/Makefile.am
ncdu-1.11/configure
ncdu-1.11/configure.ac
ncdu-1.11/aclocal.m4
ncdu-1.11/config.h.in
ncdu-1.11/depcomp
ncdu-1.11/COPYING
ncdu-1.11/ChangeLog
ncdu-1.11/README
ncdu-1.11/install-sh
ncdu-1.11/missing
ncdu-1.11/ncdu.1
[root@localhost ~]# cd ncdu-1.11
[root@localhost ncdu-1.11]# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for ranlib... ranlib
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking for unistd.h... (cached) yes
checking fnmatch.h usability... yes
checking fnmatch.h presence... yes
checking for fnmatch.h... yes
checking ncurses.h usability... no
checking ncurses.h presence... no
checking for ncurses.h... no
configure: error: required header file not found

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

2条回答 默认 最新

  • 已采纳
    yundanvyuan8110 yundanvyuan8110 2015-10-23 08:53

    我知道是什么原因了,安装ncurses-devel 即可了

    点赞 评论 复制链接分享
  • sinat_25622175 原创码 2015-10-23 06:23

    先make一下,再./configure

    点赞 评论 复制链接分享

相关推荐