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

安装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条)

报告相同问题?

悬赏问题

  • ¥30 Matlab打开默认名称带有/的光谱数据
  • ¥50 easyExcel模板 动态单元格合并列
  • ¥15 res.rows如何取值使用
  • ¥15 在odoo17开发环境中,怎么实现库存管理系统,或独立模块设计与AGV小车对接?开发方面应如何设计和开发?请详细解释MES或WMS在与AGV小车对接时需完成的设计和开发
  • ¥15 CSP算法实现EEG特征提取,哪一步错了?
  • ¥15 游戏盾如何溯源服务器真实ip?需要30个字。后面的字是凑数的
  • ¥15 vue3前端取消收藏的不会引用collectId
  • ¥15 delphi7 HMAC_SHA256方式加密
  • ¥15 关于#qt#的问题:我想实现qcustomplot完成坐标轴
  • ¥15 下列c语言代码为何输出了多余的空格