How to build headless paraview in local?

I dont think so. There is no reason to use the version of ParaView built with openfoam anyway.