'make'不被识别为内部或外部命令,可操作的程序或批处理文件 - Windows 7 [英] 'make' is not recognized as an internal or external command, operable program or batch file - Windows 7

查看:5393
本文介绍了'make'不被识别为内部或外部命令,可操作的程序或批处理文件 - Windows 7的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有Windows 7,我尝试使用'make'命令,但是'make'不被识别为内部或外部命令。

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


  • 1 )我做了:

Start -> cmd -> run -> make

输出:

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


  • 2 )然后我输入mingw32-make 'make',我得到相同的
    输出:

  • 2) Then I typed 'mingw32-make' instead of 'make' and I get the same output:

    Start -> cmd -> run -> mingw32-make
    

    输出:

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


  • 感谢您提前

    推荐答案

    问题很可能是shell不知道在哪里找到你的 make 程序。如果你想从任何地方使用它,那么你必须这样做,否则你将需要添加完整路径每次你想调用它,这是相当麻烦。例如:

    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
    

    这是一个例子,它在XP上看起来像这样,我不能说在W7。但 gnuwin32 用于为Windows提供有用的linux-world软件包。

    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.

    因此,为了避免输入路径,您可以将路径添加到 PATH 环境变量。您将轻松找到
    要确保它已被操作系统注册,请打开控制台(运行 cmd.exe ),然后输入 $ PATH 应该给你一个默认的列表。检查您的 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.

    这篇关于'make'不被识别为内部或外部命令,可操作的程序或批处理文件 - Windows 7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    相关文章
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆