Visual Studio - Could not start the 'rsync' command on the remote host, please install it using your system package manager.
Visual Studio에서 CMake를 이용해,
Visual Studio 2019 - CMake를 이용한 리눅스 빌드 환경 설정
; https://www.sysnet.pe.kr/2/0/11825
리눅스 용 C/C++ 프로젝트를 빌드하다가 어느 순간 다음과 같은 빌드 오류 메시지가 떨어집니다.
1> Copying files to the remote machine.
1> Starting copying files to remote machine.
1> Could not start the 'rsync' command on the remote host, please install it using your system package manager. Please see https://aka.ms/AA23jat for troubleshooting.
다행히 검색하니 답이 나옵니다. ^^
Could not start rsync command on the remote host
; https://github.com/Microsoft/VSLinux/issues/341
원인은, 리눅스 머신 측의 (아마도 기존 빌드 명령으로 떠 있던) rsync 프로세스가 살아 있어서 이것을 중복 실행하지 못하는 듯합니다. 따라서, shell에서 다음의 리눅스 명령어로 직접 rsync 프로세스를 종료시키면,
pkill rsync
이후에는 Visual Studio에서 원격 CMake 빌드가 오류없이 잘 됩니다.
[이 글에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]