> He likely had some old Macports or whatever binaries lying around in his $PATH (it was that for me the last time some libs didn't compile).
He only ever used Homebrew as far as I know.
> Would Linux be immune to that, if you had 2 concurrent pkg managers?
How would that ever happen?
You could probably run vanilla macOS in a VM without running into any problems.