MINGW64 "make build" error: "bash: make: command not found"

BashGoMakefileMingwGlide Golang

Bash Problem Overview


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][1]

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]: https://github.com/Masterminds/glide "Glide for Golang"

Bash Solutions


Solution 1 - Bash

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

Solution 2 - Bash

You can also use Chocolatey.

Having it installed, just run:

choco install make

When it finishes, it is installed and available in Git for Bash / MinGW.

Solution 3 - Bash

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

Solution 4 - Bash

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

> cmake --build .

Solution 5 - Bash

  • Go to downloads of jmeubank.github.io/tdm/gcc : https://jmeubank.github.io/tdm-gcc/download/
  • Download 64+32-bit MinGW-w64 edition.
  • Run the .exe file.
  • Click on Remove if you have tdm-gcc already.
  • Then Click on Create to install tdm-gcc.
  • Complete the installation.
  • Add path to environment variable if not added automatically.
  • Now run mingw32-make on your terminal / command prompt.

Hope this works

Solution 6 - Bash

You have to install make first. Run any of the below commands and it will work.

pip install make

OR

conda install make

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questionuser5845158View Question on Stackoverflow
Solution 1 - BashVallabha VamaravelliView Answer on Stackoverflow
Solution 2 - BashJuan CaleroView Answer on Stackoverflow
Solution 3 - BashDistordAngelView Answer on Stackoverflow
Solution 4 - BashlalloluView Answer on Stackoverflow
Solution 5 - BashMukul AgrawalView Answer on Stackoverflow
Solution 6 - BashANKIT MORALView Answer on Stackoverflow