我正在开发一个Ubuntu系统,并安装了Graphviz库:
sudo apt install graphviz
当我运行点命令时,默认情况下,点会附带它,因此它给出了如下内容:
There is no layout engine support for "dot"
Perhaps "dot -c" needs to be run (with installer's privileges) to register the plugins?
或者当我运行整个命令时:
dot -Tsvg test.gv -O
这会产生以下错误:
Format: "svg" not recognized. No formats found.
Perhaps "dot -c" needs to be run (with installer's privileges) to register the plugins?
我尝试了在终端点、-c、/sudo点-c中给出的命令,但没有对我起作用。另外,搜索它的解决方案,最终得到相同的答案,即使用点-c。
我试着重新安装了几次,但最后还是出现了同样的错误。我以前也使用过Graphviz,没有任何问题。不知道这次我是不是漏掉了什么。
那么,我怎么解决这个问题呢?
发布于 2022-03-01 15:49:14
值得注意的是,我在上使用了自制的安装图形,在MacOS上也有相同的错误。这个问题似乎是由缺少依赖关系引起的,尽管没有很好的反馈来说明到底缺少了什么。
这些命令(同样,Mac -不是您的平台,但上下文可能很有用)为我修复了它:
brew install libtool
brew link libtool
brew install graphviz
brew link --overwrite graphviz
具体来说,我不认为libtool安装/链接正确。
https://stackoverflow.com/questions/69377104
复制相似问题