Ubuntu精确(12.04.1 LTS)
@H_403_1@我对PEAR很新.
@H_403_1@我安装了PEAR.然后,使用pear我安装了PHPdoc.
@H_403_1@除了绘图功能外,它似乎工作得很好.
@H_403_1@我运行了这个命令:
原文链接:https://www.f2er.com/ubuntu/348609.html/var/www/site5 $PHPdoc -f models/classes.PHP -t ./docs/classes Collecting files .. OK Initializing parser .. OK Parsing files Parsing /var/www/site5/models/classes.PHP Storing cache in "/var/www/site5/docs/classes" .. OK Load cache .. 0.026s Preparing template "clean" .. 0.069s Preparing 15 transformations .. 0.000s Build "elements" index .. 0.017s Replace textual FQCNs with object aliases .. 0.151s Build "packages" index .. 0.015s Collect all markers embedded in tags .. 0.015s Build "namespaces" index and add namespaces to "elements" .. 0.004s Transform analyzed project into artifacts .. Unable to find the `dot` command of the GraphViz package. Is GraphViz correctly installed and present in your path? 12.465s Analyze results and write report to log .. 0.004s $@H_403_1@我意识到在这个网站的apache虚拟主机中我有这一行:
PHP_value include_path ".:/var/www/site5/includes"@H_403_1@所以我想也许这是阻止包含其他目录……? @H_403_1@所以我尝试将线路更改为:
PHP_value include_path ".:/var/www/site5/includes:/usr/lib/PHP:/usr/share/PHP"@H_403_1@那也不起作用,所以我最后评论了这一行,但仍然是同样的错误. @H_403_1@如果这有帮助,在/usr/share中,我运行了这个命令:
/usr/share$find -name "*GraphViz*" ./PHP/PHPDocumentor/vendor/PHPdocumentor/graphviz/src/PHPDocumentor/GraphViz ./PHP/PHPDocumentor/vendor/PHPdocumentor/graphviz/tests/PHPDocumentor/GraphViz ./PHP/Image/GraphViz.PHP ./PHP/test/Image_GraphViz ./PHP/data/PHPDocumentor/features/generate-documentation/graphs/GenerateClassDia gramUsingGraphViz.feature /usr/share$@H_403_1@我不明白为什么这不起作用.谢谢你的帮助.