微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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.jb51.cc/ubuntu/348609.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐