求助:MINGW 64 运行 “makeBuild”报错

Windows 10系统上,我想在MINGW 64中运行一个“makeBuild”,但是出现了以下错误:

$ make build
bash: make: command not found

我想构建 Glide for Golang

我试过这样做:

$ sudo yum install build-essential
bash: sudo: command not found

还有这样做:

$ yum install build-essential
bash: yum: command not found

以及:

$ apt-cyg build-essential
bash: apt-cyg: command not found

我怎么“解决”这个问题?

You have to install mingw-get and after that you can run mingw-get install msys-make to have the command make available.

Here is a link for what you want http://www.mingw.org/wiki/getting_started

  • Go to ezwinports, https://sourceforge.net/projects/ezwinports/files/

  • Download make-4.2.1-without-guile-w32-bin.zip (get the version without guile)

  • Extract zip
  • Copy the contents to C:\ProgramFiles\Git\mingw64\ merging the folders, but do NOT overwrite/replace any exisiting files.

Try using cmake itself. In the build directory, run:

cmake --build .