12

我正在尝试在 Windows 7 64 位的 Cygwin 下从源包(最新稳定版)构建htop 。我按照自述文件中的说明进行操作,但是在运行 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

所有建议将不胜感激!

4

1 回答 1

29

htop作者在这里 - htop 有很多特定于平台的代码,所以移植它不是简单地重新编译它的问题。当前版本的 htop 不支持 Cygwin。最新版本2.0.1支持 Linux 、Mac OS X、FreeBSD 和 OpenBSD。

不过,如果有人编写 Cygwin 端口,我很乐意接受补丁!

于 2015-12-07T15:33:05.107 回答