Error compiling nextcloud-spreed-signaling

I was running the signaling server successfully updating 2times to the latest version.
Nextcloud 25.02 now required a update and I run into a problem compiling the latest version:

PATH=“/usr/bin”:“/root/go/bin”:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/usr/local/go/bin protoc --go_out=. --go_opt=paths=source_relative
–go-grpc_out=. --go-grpc_opt=paths=source_relative
grpc_backend.proto
/bin/sh: 1: protoc: not found
make: *** [Makefile:110: grpc_backend.pb.go] Error 127

Next things worked for me:

  1. Error says that “protoc” not found, so need to install the latest version:
    sudo apt install protobuf-compiler
  2. “go” version >1.17 is needed. I have updated “go” to the latest 1.19 (this article might be useful https://buildvirtual.net/how-to-upgrade-go-on-ubuntu/)
  3. then I faced with another problem, turned out that “go” version 1.19 need addition config in environments variables (I found it in discussion buildvcs=false must be added to a default build args · Issue #672 · ko-build/ko · GitHub)
    After these steps build goes without errors