gpt4 book ai didi

cygwin - 在 Cygwin 中从源代码构建 htop

转载 作者:行者123 更新时间:2023-12-04 01:34:46 26 4
gpt4 key购买 nike

我正在尝试构建 htop来自 Windows 7 64 位上 Cygwin 下的源包(最新稳定版)。我正在按照自述文件中给出的说明进行操作,但是在运行 make 脚本时遇到以下错误:

Administrator@x230-WIN7 ~/tmp/htop-1.0.3
$ make
make all-am
make[1]: Entering directory '/home/Administrator/tmp/htop-1.0.3'
gcc -DHAVE_CONFIG_H -I. -DNDEBUG -pedantic -Wall -Wextra -std=c99 -rdynamic -D_XOPEN_SOURCE_EXTENDED -DSYSCONFDIR=\"/usr/local/etc\" -g -O2 -MT htop-AvailableMetersPanel.o -MD -MP -MF .deps/htop-AvailableMetersPanel.Tpo -c -o htop-AvailableMetersPanel.o `test -f 'AvailableMetersPanel.c' || echo './'`AvailableMetersPanel.c
gcc: error: unrecognized command line option ‘-rdynamic’
Makefile:467: recipe for target 'htop-AvailableMetersPanel.o' failed
make[1]: *** [htop-AvailableMetersPanel.o] Error 1
make[1]: Leaving directory '/home/Administrator/tmp/htop-1.0.3'
Makefile:292: recipe for target 'all' failed
make: *** [all] Error 2

所有建议将不胜感激!

最佳答案

htop作者在这里——htop 有很多平台特定的代码,所以移植它是 not a matter of simply recompiling it .当前版本的 htop 不支持 Cygwin。最新release版本,2.0.1 , 支持 Linux、Mac OS X、FreeBSD 和 OpenBSD。

我很高兴 accept patches不过,如果有人写了一个 Cygwin 端口!

关于cygwin - 在 Cygwin 中从源代码构建 htop,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34118879/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com