yundanvyuan8110 2015-10-23 06:20 采纳率: 100%
浏览 2539
已采纳

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

在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 2015-10-23 08:53
    关注

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

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥20 求数据集和代码#有偿答复
  • ¥15 关于下拉菜单选项关联的问题
  • ¥20 java-OJ-健康体检
  • ¥15 rs485的上拉下拉,不会对a-b<-200mv有影响吗,就是接受时,对判断逻辑0有影响吗
  • ¥15 使用phpstudy在云服务器上搭建个人网站
  • ¥15 应该如何判断含间隙的曲柄摇杆机构,轴与轴承是否发生了碰撞?
  • ¥15 vue3+express部署到nginx
  • ¥20 搭建pt1000三线制高精度测温电路
  • ¥15 使用Jdk8自带的算法,和Jdk11自带的加密结果会一样吗,不一样的话有什么解决方案,Jdk不能升级的情况
  • ¥15 画两个图 python或R