"make (e=2): 系统找不到指定的文件"的原因
2010-08-27 10:37
1091 查看
mingw32-make clean all
process_begin : CreateProcess ( (null), rm -f Test1.o Test2.o Main.o test_me.exe, ...) failed.
make (e=2): The system cannot find the file specified.
mingw32-make: *** [clean] Error 2
rm-f Test1.o Test2.o Main.otest_me.exe
This means that mingw32-make was
unable to find the utility "rm
".
Unfortunately, MinGW
does not come with "rm
". To correct this, replace the clean rule in your Makefile
with:
clean :
-del$(REBUILDABLES)
echoClean done
The leading minus sign tells make
to consider the clean rule to be successful even if thedel
command returns
failure. This may be acceptable since thedel
command will
fail if the specified files to be deleted do not exist yet (or anymore).另外也可以根据eclipse的帮助,安装
MSYS-1.0.10.exe
并设置环境变量,里面包含rm等相关的命令。If you want to use Makefile projects, download and run the setup program from
the following location: MSYS-1.0.10.exe
.
MSYS provides an implementation of make and related command line tools. This is
not required for other types of projects with the MinGW toolchain, which use
CDT's internal build tools to perform the build.参考: http://www.xilinx.com/support/documentation/sw_manuals/xilinx11/SDK_doc/concepts/cdt_c_makefile.htm
相关文章推荐
- "未能加载文件或程序集“XXX”或它的某一个依赖项。系统找不到指定的文件"的解决方案
- "未能载入文件或程序集“XXX”或它的某一个依赖项。系统找不到指定的文件"的解决方式
- "未能加载文件或程序集“XXX”或它的某一个依赖项。系统找不到指定的文件"的解决方案
- 系统找不到指定的文件。 Project : error PRJ0019: 工具从"正在执行生成后事件..."
- VS打开.net工程提示"无法读取项目文件"web.csproj",系统找不到指定路径"
- 如何解决Mysql "发生系统错误2,找不到指定的文件" 的问题(第一次安装使用)
- 系统找不到指定的文件 No installed service named "Apache2"
- DALFactory出现"未能加载文件或程序集“Flashlm.SQLServerDAL”或它的某一个依赖项。系统找不到指定的文件”的解决方案
- 未能加载文件或程序集"roomChargeDAL"或它的某一个依赖项,系统找不到指定的文件
- 虚拟机 "\\.\Global\vmx86": 系统找不到指定的文件.
- 无法启动程序'...debug/abc.exe',系统找不到指定文件"的问题
- 未能加载文件或程序集“System.EnterpriseServices, Version=4.0.0.0..."系统找不到指定的文件
- no installed service named "Apache2" 安装Apache问题:系统找不到指定的文件 No installed service named "Apache2"
- DALFactory出现"未能加载文件或程序集“DAL”或它的某一个依赖项。系统找不到指定的文件”的解决方案 .
- TRACKER : error TRK0005: Failed to locate: "CL.exe". 系统找不到指定的文件。
- 附加数据库 无法打开物理文件"" 操作系统错误 2: ( 系统找不到指定的文件.)错误 5120(重命名SQLServer数据库的方法)
- Mysql第一次使用-如何解决Mysql "发生系统错误2,找不到指定的文件" 的问题(第一次安装使用)
- 安装Apache时,系统找不到指定的文件 No installed service named "Apache2"的解决办法
- VMware安装MacOS虚拟机 "\\.\Global\vmx86": 系统找不到指定的文件
- 异常“未能加载文件或程序集"DAL"或它的某一个依赖项。系统找不到指定的文件。”的解决办法