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

相关文章

目录前言一、创建Hadoop用户二、更新apt和安装Vim编辑器三、...
原文连接:https://www.cnblogs.com/yasmi/p/5192694.html ...
电脑重启后,打开VirtualBox,发现一直用的虚拟机莫名的消失...
参见:https://blog.csdn.net/weixin_38883338/article/deta...
Ubuntu 18.04 LTS 已切换到 Netplan 来配置网络接口。Netpla...
介绍每个 Web 服务都可以通过特定的 URL 在 Internet 上访问...