Install dot in OpenBSD. This is a binary package.
pkg_add graphviz
Install dot in MacOS. This is a source code package that needs to be compiled. But it is done automatically.
sudo port install graphviz
Or download precomiled Universal binary from Graphwiz Download (recommended).