eclipse 错误:在 PATH 中找不到程序“make”

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/11817994/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 18:46:00  来源:igfitidea点击:

Error: Program "make" not found in PATH

c++eclipsewindoweclipse-cdt

提问by LCJ

I have the following error in Eclipse CDT (using Windows 7). How to correct it?

我在 Eclipse CDT 中有以下错误(使用 Windows 7)。如何纠正?

Error: Program "make" not found in PATH PATH=[C:\cygwin\bin;C:/Program Files/Java/jre1.6.0/bin/client;C:/Program Files/Java/jre1.6.0/bin;C:/Program Files/Java/jre1.6.0/lib/i386;C:\Program Files\WinRAR;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\cygwin\bin\;C:\Users\user\AppData\Local\Temp\Rar$EX00.502\eclipse]

错误:在 PATH 中找不到程序“make” PATH=[C:\cygwin\bin;C:/Program Files/Java/jre1.6.0/bin/client;C:/Program Files/Java/jre1.6.0/bin; C:/Program Files/Java/jre1.6.0/lib/i386;C:\Program Files\WinRAR;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\ System32\WindowsPowerShell\v1.0\;C:\cygwin\bin\;C:\Users\user\AppData\Local\Temp\Rar$EX00.502\eclipse]

Path Environment variable has the following

Path 环境变量有以下内容

C:\cygwin\bin\

C:\cygwin\bin\

BASH enter image description here

巴什 在此处输入图片说明

回答by a develooper

You should install make package in cygwin. To do this execute cygwin setup.exe and when the window of packages opened, search make and install it. This is gonna solve your problem i think

您应该在 cygwin 中安装 make 包。为此,请执行 cygwin setup.exe,当软件包窗口打开时,搜索 make 并安装它。我想这会解决你的问题

回答by Sebastian Dressler

You're missing makewhich is used for processing Makefiles to build programs.

您缺少make用于处理 Makefile 以构建程序的内容。

Also to me it seems that this is more related to superuser.com, hereis a similar question.

对我来说,这似乎与 superuser.com 更相关,这里有一个类似的问题。