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

前端 未结 8 748
有刺的猬
有刺的猬 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-09 09:53

    To build on user3869623's response.

    In my case i had git\bin in my %PATH% which contains bash.exe and sh.exe.. Removing %GIT_HOME%\bin from the PATH worked for me

    While this recommendation may allow make to run, it will likely cause issues for git, especially if the makefile is installing software from a git repository.

    A better solution is to simply change %GIT_HOME%\bin to %GIT_HOME%\cmd

提交回复
热议问题