Clang must be installed in order to build this target

Hi I’m trying to generate the compile_commands.json fie with the unreal build tool on Fedora, but it’s saying Clang must be installed in order to build this target. I definitely have clang installed, and i have run Setup.sh and GenerateProjectFiles.sh so I’m not sure what’s going on.

Same error here when using the -mode=GenerateClangDatabase as an argument of UBT. I have Ubuntu 18.04 & UE4.24 as well as clang 8.0.1.