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

前端 未结 12 1771
名媛妹妹
名媛妹妹 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:12

    Your problem is most likely that the shell does not know where to find your make program. If you want to use it from "anywhere", then you must do this, or else you will need to add the full path each time you want to call it, which is quite cumbersome. For instance:

    "c:\program files\gnuwin32\bin\make.exe" option1=thisvalue option2=thatvalue
    

    This is to be taken as an example, it used to look like something like this on XP, I can't say on W7. But gnuwin32 used to provide useful "linux-world" packages for Windows. Check details on your provider for make.

    So to avoid entering the path, you can add the path to your PATH environment variable. You will find this easily. To make sure it is registered by the OS, open a console (run cmd.exe) and entering $PATH should give you a list of default pathes. Check that the location of your make program is there.

提交回复
热议问题