Ubuntu Precision(12.04.1 LTS)
我是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$
我不明白为什么这不起作用。谢谢你的帮助。