Error - Unable to find `dot` command of the GraphViz package

Solution 1:

I had this problem when generating PHPDoc, during the "Transform analyzed project into artifacts"-phase. I solved this problem by executing the following command

sudo apt-get install graphviz

Solution 2:

I tried installing it using PEAR.

sudo pear install Image_GraphViz

I ended up just upgrading (practically) EVERYTING and it worked.

apt-get --fix-missing
sudo apt-get install php-pear --fix-missing
sudo apt-get install php-pear
sudo apt-get install php5-xsl
sudo apt-get update

Not sure what exactly did the trick, but it works now.


Solution 3:

I had the same issue. You'll need to make sure you have "dot" installed.

"dot" is included with GraphViz.


Solution 4:

For the non-apt-getters.

brew install graphviz

sorted it out for me, also needed it for PHPDoc.