Problem solved.
I working with a kind of unusual setup where I don't want to install scriba on the machine I've compiled it on, but to install it inside a subirectory where I'm setting up a root filesystem for an embedded system. I moved the directory where I compiled everything into my target directory and then chrooted to that dir. From there ./setup --install and install.sh worked correctly.