Windows 7 - 'make' is not recognized as an internal or external command, operable program or batch file

前端 未结 12 1713
名媛妹妹
名媛妹妹 2020-11-28 11:59

I have Windows 7 and tried to use the \'make\' command but \'make\' is not recognized as an internal or external command.

I did Start -> cmd -> run ->

相关标签:
12条回答
  • 2020-11-28 12:22

    If you already have MinGW installed in Windows 7, just simply do the following:

    1. Make another copy of C:\MinGW\bin\mingw32-make.exe file in the same folder.
    2. Rename the file name from mingw32-make.exe to make.exe.
    3. Run make command again.

    Tested working in my laptop for above steps.

    0 讨论(0)
  • 2020-11-28 12:23

    try download & run my bat code

    ======run 'cmd' as admin 2 use 'setx'===== setx scoop "C:\Users%username%\scoop" /M

    echo %scoop%
    
    setx scoopApps "%scoop%\apps" /M
    
    echo %scoopApps%
    
    scoop install make 
    

    =======Phase 3: Create the makePath environment variable===

    setx makePath "%scoopApps%/make" /M
    
    echo %makePath%
    
    setx makeBin "%makePath%/Bin" /M
    
    echo %makeBin%
    
    setx Path "%Path%;%makeBin%" /M
    
    
    echo %Path%
    
    0 讨论(0)
  • 2020-11-28 12:24
    1. First make sure you have MinGW installed.
    2. From MinGW installation manager check if you have the mingw32-make package installed.
    3. Check if you have added the MinGW bin folder to your PATH. type PATH in your command line and look for the folder. Or on windows 10 go to Control Panel\System and Security\System --> Advanced system settings --> Environment Variables --> System Variables find Path variable, select, Edit and check if it is there. If not just add it!
    4. As explained here, create a new file in any of your PATH folders. For example create mingwstartup.bat in the MinGW bin folder. write the line doskey make=mingw32-make.exe inside, save and close it.
    5. open Registry Editor by running regedit. As explained here in HKEY_LOCAL_MACHINE or HKEY_CURRENT_USER go to \Software\Microsoft\Command Processor right click on the right panel New --> Expandable String Value and name it AutoRun. double click and enter the path to your .bat file as the Value data (e.g. "C:\MinGW\bin\mingwstartup.bat") the result should look like this:

    now every time you open a new terminal make command will run the mingw32-make.exe. I hope it helps.

    0 讨论(0)
  • 2020-11-28 12:27

    For window-10 resolved error- make' is not recognized as an internal or external command.

    1. Download MinGW - Minimalist GNU for Windows from here https://sourceforge.net/projects/mingw/

    2. install it

    3. While installation mark all basic setup packages like shown in image

    4. Apply changes

    5. After completion of installation copy C:\MinGW\bin paste in system variable

    Open MyComputer properties and follow as shown in image

    You may also need to install this

    1. https://sourceforge.net/projects/gnuwin32/
    0 讨论(0)
  • 2020-11-28 12:28

    In Windows10, I solved this issue by adding "C:\MinGW\bin" to Path then called it using MinGW32-make not make

    0 讨论(0)
  • 2020-11-28 12:28

    use mingw32-make instead of cmake in windows

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