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

前端 未结 4 1590
广开言路
广开言路 2021-02-01 02:15

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

相关标签:
4条回答
  • 2021-02-01 02:23
    • 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.
    0 讨论(0)
  • 2021-02-01 02:26

    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

    0 讨论(0)
  • 2021-02-01 02:46

    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.

    0 讨论(0)
  • 2021-02-01 02:46

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

    cmake --build .

    0 讨论(0)
提交回复
热议问题