简体   繁体   English

无法运行程序“make”:系统找不到指定的文件?

[英]Cannot run program “make”: The system cannot find the file specified?

This is the first time that this error has come up. 这是第一次出现此错误。 I am using Cygwin with Eclipse 3.5 and my Path variable is set to: %CommonProgramFiles%\\Microsoft Shared\\Windows Live;%SystemRoot%\\system32;%SystemRoot%;%SystemRoot%\\System32\\Wbem;%SYSTEMROOT%\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files\\Microsoft SQL Server\\100\\Tools\\Binn\\;C:\\Program Files\\Microsoft SQL Server\\100\\DTS\\Binn\\;C:\\Program Files\\Apache Ant\\bin;C:\\Program Files\\SVN\\bin;C:\\Program Files\\Java\\jdk1.6.0_18\\bin;C:\\Users\\Mohit\\Developer\\AndroidSDK\\tools;C:\\Program Files\\QuickTime\\QTSystem\\;C:\\cygwin\\bin Notice that C:\\cygwin\\bin is in my Path. 我正在使用Cygwin和Eclipse 3.5并且我的Path变量设置为: %CommonProgramFiles%\\Microsoft Shared\\Windows Live;%SystemRoot%\\system32;%SystemRoot%;%SystemRoot%\\System32\\Wbem;%SYSTEMROOT%\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files\\Microsoft SQL Server\\100\\Tools\\Binn\\;C:\\Program Files\\Microsoft SQL Server\\100\\DTS\\Binn\\;C:\\Program Files\\Apache Ant\\bin;C:\\Program Files\\SVN\\bin;C:\\Program Files\\Java\\jdk1.6.0_18\\bin;C:\\Users\\Mohit\\Developer\\AndroidSDK\\tools;C:\\Program Files\\QuickTime\\QTSystem\\;C:\\cygwin\\bin请注意, C:\\cygwin\\bin在我的Path中。 And make.exe is is my Cygwin bin. 而make.exe是我的Cygwin bin。 So I think the problem is not with my system, but maybe my project. 所以我认为问题不在于我的系统,而在于我的项目。 But I can't find anything wrong with it. 但我发现它没有任何问题。 Any suggestions? 有什么建议?

Use Process Explorer to take a look at the PATH environment variable inside Eclipse's process. 使用Process Explorer查看Eclipse进程中的PATH环境变量。 It's possible that it's changing its PATH internally -- if that's the case, you'll need to figure out how to configure Eclipse so that its PATH is set up correctly. 它可能在内部更改其PATH - 如果是这种情况,您需要弄清楚如何配置Eclipse以便正确设置其PATH。

If you're finding that C:\\cygwin\\bin isn't in Eclipse's PATH, and you recently added that to your PATH, you need to close and restart Eclipse for that change to take affect. 如果您发现C:\\cygwin\\bin不在Eclipse的PATH中,并且您最近将其添加到PATH中,则需要关闭并重新启动Eclipse才能使该更改生效。

If you still can't figure it out, try using Process Monitor with a filter for Eclipse.exe to get a long, detailed listing of everything it's trying to do. 如果您仍然无法弄明白,请尝试使用带有Eclipse.exe过滤器的Process Monitor来获取它正在尝试执行的所有操作的详细列表。 Look for the call to CreateProcess() that's failing and see if you can learn anything more. 寻找对失败的CreateProcess()的调用,看看你是否可以学到更多东西。

I had same problem and I solved that copy make.exe file in path that ecilipse given. 我有同样的问题,我解决了复制make.exe文件在给出ecilipse的路径。 from link below http://www.mediafire.com/download/e9j9g4zun2t68jn/make.exe hope helps 从下面的链接http://www.mediafire.com/download/e9j9g4zun2t68jn/make.exe希望有所帮助

I go around this issue by installing MinGW and use its GCC compiler. 我通过安装MinGW解决了这个问题,并使用它的GCC编译器。

Environment - OS: Windows 10, Eclipse: Oxygen 环境 - 操作系统:Windows 10,Eclipse:氧气

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Make error: make (e=2): 系统找不到指定的文件 - Make error: make (e=2): The system cannot find the file specified Visual Studio 错误“无法启动程序:系统找不到指定的文件。” - Visual Studio Error “Unable to start program: The system cannot find the specified file.” Make:“系统找不到指定的路径”只在用makefile编译时? - Make: "The system cannot find the path specified" only when compiling with makefile? 在 C 中的文件中读取程序找不到指定的文件 - reading In a file in C program cannot find file specified 无法启动程序,找不到指定的文件,Visual Studio 11 - Unable to start program, cannot find the file specified, Visual Studio 11 C makefile,在CCS中,“系统找不到指定的文件” - C makefile, in CCS, “The system cannot find the file specified” 通过CMD复制时,系统找不到指定的文件 - System cannot find the file specified while copying through CMD 编程C时系统找不到指定的文件 - The system cannot find the file specified while programming C GetFileAttributesW API 抛出“系统找不到指定的文件” - GetFileAttributesW API throws ‘system cannot find the file specified’ Sign Windows x64驱动程序-系统找不到指定的文件 - Sign Windows x64 Driver - The system cannot find the file specified
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM