ubuntu – 错误 – 无法找到GraphViz包的`dot`命令

前端之家收集整理的这篇文章主要介绍了ubuntu – 错误 – 无法找到GraphViz包的`dot`命令前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
Ubuntu精确(12.04.1 LTS)

我对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$

我不明白为什么这不起作用.谢谢你的帮助.

在“将分析的项目转换为工件”期间生成PHPDoc时,我遇到了这个问题.我通过执行以下命令解决了这个问题
sudo apt-get install graphviz
原文链接:https://www.f2er.com/ubuntu/348609.html

猜你在找的Ubuntu相关文章