Read the official docs and install all dependencies listed in Prerequisites section.
On Windows you'll also need to install msys2 and run pacman -S mingw-w64-x86_64-curl to have libcurl for ktor-client.
On ubuntu install libcurl4-openssl-dev for ktor client.
save-agent also requires unzip to be present on $PATH.