且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

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

更新时间:2023-11-09 23:26:28

使用 Process Explorer 来查看Eclipse进程中的PATH环境变量。它可能在内部改变它的PATH - 如果是这样,你需要弄清楚如何配置Eclipse,使其PATH设置正确。

Use Process Explorer to take a look at the PATH environment variable inside Eclipse's process. 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.

如果您发现 C:\cygwin\bin 不在Eclipse的PATH中,并且您最近将其添加到PATH中,则需要关闭并重新启动Eclipse以使该更改生效。

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.

如果仍然无法确定,请尝试使用过程监视器,其中包含Eclipse.exe的过滤器,以获得一个长期详细的列表,它尝试做的一切。查找 CreateProcess()的调用失败,看看是否还能学到更多。

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. Look for the call to CreateProcess() that's failing and see if you can learn anything more.