Makefile error make (e=2): The system cannot find the file specified

前端 未结 8 738
有刺的猬
有刺的猬 2020-12-09 09:20

I am using a makefile in windows to push some files on a Unix server (here a text file \"blob.txt\" in the same folder of my makefile). My makefile script is:



        
8条回答
  •  天涯浪人
    2020-12-09 09:53

    I know this is an old question that has been answered, but thought I'd and my experiences for anyone still running into this. I was getting the same cryptic error Colonel Beauvel (though with the windows MOVE command, not pscp):

    process_begin: CreateProcess(NULL, move /y foo\bar.c .\baz.c, ...) failed.
    make (e=2): The system cannot find the file specified.
    

    Our CI was running the same Makefile and working perfectly. Turns out CI was using mingw32-make and I was using GNU make. Uninstalling GNU make (which got installed as part of an unrelated bulk package) and aliasing mingw32-make to 'make' works perfectly.

提交回复
热议问题