If you don’t want to bother building from source you can use the docker container from the same guy that made this script.
https://hub.docker.com/r/ronivay/xen-orchestra