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

报告相同问题?

悬赏问题

  • ¥15 metadata提取的PDF元数据,如何转换为一个Excel
  • ¥15 关于arduino编程toCharArray()函数的使用
  • ¥100 vc++混合CEF采用CLR方式编译报错
  • ¥15 coze 的插件输入飞书多维表格 app_token 后一直显示错误,如何解决?
  • ¥15 vite+vue3+plyr播放本地public文件夹下视频无法加载
  • ¥15 c#逐行读取txt文本,但是每一行里面数据之间空格数量不同
  • ¥50 如何openEuler 22.03上安装配置drbd
  • ¥20 ING91680C BLE5.3 芯片怎么实现串口收发数据
  • ¥15 无线连接树莓派,无法执行update,如何解决?(相关搜索:软件下载)
  • ¥15 Windows11, backspace, enter, space键失灵