Make sure you have the dot command-line program installed. This is provided by the graphviz package in most package managers (including Ubuntu and Homebrew).
dot
graphviz