无法运行程序 "make": The system cannot find the file specified?

标签 c eclipse makefile eclipse-cdt

这是第一次出现这个错误。我在 Eclipse 3.5 中使用 Cygwin,我的 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在我的道路上。 make.exe 是我的 Cygwin bin。所以我认为问题不在于我的系统,而在于我的项目。但我找不到任何问题。有什么建议吗?

最佳答案

使用Process Explorer查看 Eclipse 进程中的 PATH 环境变量。它可能会在内部更改其 PATH——如果是这种情况,您将需要了解如何配置 Eclipse 以便正确设置其 PATH。

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

如果您仍然无法理解,请尝试使用 Process Monitor使用 Eclipse.exe 的过滤器来获取它正在尝试执行的所有操作的长而详细的列表。查找失败的 CreateProcess() 调用,看看您是否可以了解更多信息。

关于无法运行程序 "make": The system cannot find the file specified?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3220044/

相关文章:

C:套接字:无法读取整个服务器响应

c - 如何比较一个字符?

java - Android studio 外部SD卡的路径

java - 以编程方式设置测试模式时出现真正的 Admob 广告

c - 十进制到二进制函数中的段错误

c - AVR-GCC 链接器 : "Data"-Section overflows

java - LWUIT - 在主题中使用数据导致 java.lang.OutOfMemoryError

linux - 尝试为 XenServer 7.0 制作主机 sFlow

linux - 挣扎于 GCC Makefile

unix - AIX Makefile 中的条件部分