If /opt/gvm/var/run/ospd.sock is not available ospd-openvas is not running or the user running gvmd has no permissions to access the unix socket.
The linked guide uses end-of-life versions of the GVM components. We provide a source build documentation for Debian bases systems at https://greenbone.github.io/docs/