MINGW64 “make build” error: “bash: make: command not found”

白昼怎懂夜的黑 提交于 2019-12-03 16:29:48

问题


I am working on Windows 10. I want to run a "make build" in MINGW64 but following error comes up:

$ make build
bash: make: command not found

I want to build Glide for Golang

I tried following:

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

As well as:

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

And:

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

How can I "work-around" this problem?


回答1:


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




回答2:


  • 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.



回答3:


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

cmake --build .



来源:https://stackoverflow.com/questions/36770716/mingw64-make-build-error-bash-make-command-not-found

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!