【发布时间】:2020-08-21 10:37:37
【问题描述】:
按照htop的标准安装程序会产生以下错误:
~/htop-2.2.0 $ ./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
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... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/app/htop-2.2.0':
configure: error: C compiler cannot create executables
See `config.log' for more details
【问题讨论】:
-
您是否能够使用下面显示的任何答案来解决这个问题?如果是这样,请记得accept it。这会向其他用户显示您已找到解决方案。
-
谢谢。我还没有尝试答案中提到的方法,一旦我能够验证就会更新。