程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> 更多編程語言 >> 編程綜合問答 >> 謝謝!-安裝ncdu時報錯,ncurses.h沒有找到

謝謝!-安裝ncdu時報錯,ncurses.h沒有找到

編輯:編程綜合問答
安裝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

最佳回答:


我知道是什麼原因了,安裝ncurses-devel 即可了

  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved