Search code examples
symfonycomposer-phpgraphvizphpdoc

phpDocumentor - Unable to find the dot command of the GraphViz package


I would like ask some help about my next problem: I am working on a Symfony2 project. We installed Symfony2 via composer. Now I would like to generate phpDocument used by phpDocumentor.

A did the following steps:

  1. update composer: sudo php composer.phar self-update
  2. add the following property to Symfony2/compose.json file:

    "require-dev": {
        "phpdocumentor/phpdocumentor": "2.*@dev"
    },
    
  3. Run composer command

    sudo php composer.phar update
    

Result was success! The installed GraphViz version is: 1.0.2

When I try to generate phpDoc from source code finally I got a message: Unable to find the dot command of the GraphViz package. Is GraphViz correctly installed and present in your path? (Document generated as right...)

I tried to found a soulution about this problem but I couldn't.
Is anybody can help me to resolve this problem?

Environment is: Ubuntu release 12.04


Solution

  • Graphviz is a nice software that creates graphs, but PHP software can only provide wrappers that create Graphviz source files that then get parsed and morphed into pictures.

    Phpdocumentor comes with it's own wrapper, but you still have to install the Graphviz software package.