Last time I was part of the process to interview devops, we asked this question (pairing remotely tmux'd into an ec2 instance). I think we went through 10 people before we found 1 that could do it. And, of course, when he did it, it took him like 5 minutes. Everyone else struggled. "but I use a package manager" was the most common complaint.
You do need things like build-essential installed (which we'd let them install however they wanted). And a blank ./configure normally complains about missing pcre and maybe gzip (I forget). But we'd just tell them they could install without it (and the error message makes it very clear how to do that (--without-pcre or whatever).
Very sad.