Windows 7 - 'make' 不是内部或外部命令,也不是可运行的程序或批处理文件 [英] Windows 7 - 'make' is not recognized as an internal or external command, operable program or batch file

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

问题描述

我使用 Windows 7 并尝试使用make"命令,但make"未被识别为内部或外部命令.

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

我做了开始->cmd ->运行 ->make,输出:

'make' 不是内部或外部命令,也不是可运行的程序或批处理文件.

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

然后我输入'mingw32-make'而不是'make'(Start -> cmd -> run -> mingw32-make),我得到相同的输出:

Then I typed 'mingw32-make' instead of 'make' (Start -> cmd -> run -> mingw32-make) and I get the same output:

'mingw32-make' 不是内部或外部命令,也不是可运行的程序或批处理文件.

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

接下来我该怎么做才能解决这个问题?

What shall I do next in order to fix this problem?

推荐答案

您的问题很可能是 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 filesgnuwin32inmake.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.

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

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