小编use*_*001的帖子

Makefile 和 rsync 错误:无法执行 ssh:没有这样的文件或目录

我正在尝试使用 rsync 和 makefile 将 mac 上的本地文件发布到我的服务器。运行 make 命令时出现以下错误:

rsync: Failed to exec ssh: No such file or directory (2)  
rsync error: error in IPC code (code 14) at /SourceCache/rsync/rsync-42/rsync/pipe.c(86)   [sender=2.6.9]  
rsync: connection unexpectedly closed (0 bytes received so far) [sender]  
rsync error: error in IPC code (code 14) at /SourceCache/rsync/rsync-42/rsync/io.c(452) [sender=2.6.9]  
make: *** [deploy] Error 14  
Run Code Online (Sandbox Code Playgroud)

奇怪的是,如果我直接在 shell 中输入 rsync 命令,它就会起作用。

下面是 makefile 中有趣的部分:

USER = admin  
SERVER = 92.243.xx.xx  
PATH = d_ghost1/www/sub.domain.de/htdocs/  

deploy:  
    /usr/bin/rsync -avz \  
    --exclude '.git*' …
Run Code Online (Sandbox Code Playgroud)

rsync makefile

5
推荐指数
2
解决办法
1万
查看次数

标签 统计

makefile ×1

rsync ×1