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.