我试图从源代码包(最新的稳定)在Windows764位上的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如有任何建议,将不胜感激!
发布于 2015-12-07 15:33:05
这里的htop作者- htop有很多特定于平台的代码,所以移植它是而不是简单地重新编译它。当前版本的htop不支持Cygwin。最新的发布版本,2.0.1,支持Linux、Mac、FreeBSD和OpenBSD。
不过,如果有人写了一个Cygwin端口,我很高兴接受补丁!
https://stackoverflow.com/questions/34118879
复制相似问题