Ubuntu精确(12.04.1 LTS)
原文链接:https://www.f2er.com/ubuntu/348609.html我对PEAR很新.
我安装了PEAR.然后,使用pear我安装了PHPdoc.
除了绘图功能外,它似乎工作得很好.
我运行了这个命令:
/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 $
我意识到在这个网站的apache虚拟主机中我有这一行:
PHP_value include_path ".:/var/www/site5/includes"
所以我想也许这是阻止包含其他目录……?
所以我尝试将线路更改为:
PHP_value include_path ".:/var/www/site5/includes:/usr/lib/PHP:/usr/share/PHP"
如果这有帮助,在/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$
我不明白为什么这不起作用.谢谢你的帮助.