windows 如何在windows上用msys编译reaver-wps?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/8730171/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 18:47:35  来源:igfitidea点击:

How to compile reaver-wps with msys on windows?

windowscompilationmingwmsys

提问by Fabian

im trying to compile reaver-wps ( https://code.google.com/p/reaver-wps/) on windows 7 using MSYS. I know there's only support for linux builds but i just wanted to give it a try. What i did so far: install and compile http://www.winpcap.org/devel.htm, compile sqlite3

我正在尝试使用 MSYS 在 Windows 7 上编译 reaver-wps ( https://code.google.com/p/reaver-wps/)。我知道只支持 linux 构建,但我只是想尝试一下。到目前为止我做了什么:安装和编译http://www.winpcap.org/devel.htm,编译 sqlite3

ran $ ./configure in src forlder of reaver-wps

在 reaver-wps 的 src 文件夹中运行 $ ./configure

ran $ make

跑 $ make

which failed:

失败了:

$ make
> (cd utils && make)
make[1]: Entering directory `/f/temp/reaver/src/utils'
make[1]: cc: Command not found
make[1]: *** [base64.o] Error 127
make[1]: Leaving directory `/f/temp/reaver/src/utils'
make[1]: *** [libutils] Error 2

did someone manage to compile it on win? if yes please tell me how. thanks for any tips / hints you have!

有人设法在win上编译它吗?如果是,请告诉我如何。感谢您提供的任何提示/提示!

回答by Niklas B.

The error message suggests that you don't have a C compiler installed orthat the installed C compiler is not available through a command ccin your PATH. It's not surprising that this is a showstopper for building a C program.

该错误消息表明您没有安装 C 编译器,或者安装的 C 编译器无法通过ccPATH 中的命令使用。毫不奇怪,这是构建 C 程序的一大亮点。

If you have GCC installed, you can maybe fix this by creating a symlink from ccto gccin your bindirectory.

如果你安装了GCC,你也许可以通过创建一个符号链接解决这个问题cc,以gcc你的bin目录中。

回答by Mr.Lunatic

install cygwin it contains gcc for win and the compile using it.It is a free tool that downloads libraries from internet.

安装 cygwin 它包含 gcc for win 和使用它的编译。它是一个从互联网下载库的免费工具。