nmake: command not found when building OpenSSL

2019-07-31 17:47发布

问题:

I'm trying to follow the installation instruction for OpenSSL on Windows using this instruction on git bash.

On Windows (only pick one of the targets for configuration):

$ perl Configure { VC-WIN32 | VC-WIN64A | VC-WIN64I | VC-CE }
$ nmake
$ nmake test
$ nmake install

but it failed to recognized nmake. The command resulted in nmake: command not found.

Has someone know about nmake? Or am I doing it wrong?

回答1:

$ perl Configure { VC-WIN32 | VC-WIN64A | VC-WIN64I | VC-CE }
$ nmake

but it failed to recognized nmake.

Download and install the Visual C++ build tools. You don't have to download Visual Studio, or subject yourself to the gimmicks and expiring trials. The Visual C++ build tools provide everything you need to work from the command line.

Then, open a developer prompt, cd into the OpenSSL directory and perform the procedure. To open a developer prompt: Start → All Programs → Microsoft Visual Studio → Visual Studio Tools → Visual Studio Command Prompt. Also see Developer Command Prompt for Visual Studio on MSDN.



回答2:

nmake is a Microsoft build tool for C++. Download Visual C++ Express to get it. Unfortunately you can't get just nmake on its own, you have to download the entire toolchain.