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

求助: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

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

我正在Windows 10上工作。我想在MINGW64中运行“ make build”,但出现以下错误: p>

  $ make build 
bash:make:找不到命令
  code>  pre> 
 
 

我要构建 Glide for Golang p>

我尝试了以下操作: p>

  $ sudo yum install build-essential 
bash:sudo:找不到命令
  code>  pre> 
 
 

以及: p>

  $ yum install build-essential 
bash:yum:找不到命令
  code>  pre> 
 
 

并且: p> \ n

  $ apt-cyg build-essential 
bash:apt-cyg:找不到命令
  code>  pre> 
 
 

“如何解决” “这个问题吗? p> div>

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 .