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

前端 未结 8 751
有刺的猬
有刺的猬 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:51

    The error

    process_begin: CreateProcess(NULL, pscp blob.txt username@hostname:/folder/, ...) failed.
    make (e=2): The system cannot find the file specified.
    

    is almost certainly complaining that Windows cannot find pscp.

    This is almost certainly because the value of %PATH% (or whatever) is different when make spawns a shell/console then when you have it open manually.

    Compare the values to confirm that. Then either use the full path to pscp in the makefile recipe or ensure that the value of PATH is set correctly for make's usage.

提交回复
热议问题