首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在Cygwin从源头构建htop

在Cygwin从源头构建htop
EN

Stack Overflow用户
提问于 2015-12-06 15:06:54
回答 1查看 5K关注 0票数 12

我试图从源代码包(最新的稳定)在Windows764位上的Cygwin下构建htop。我正在遵循自述文件中给出的指令,但在运行make脚本时遇到了以下错误:

代码语言:javascript
复制
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

如有任何建议,将不胜感激!

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-12-07 15:33:05

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

不过,如果有人写了一个Cygwin端口,我很高兴接受补丁

票数 30
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/34118879

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档