我在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但对我不起作用。同时,搜索它的解,最终得到相同的答案,即使用dot -c。
我试着重新安装它几次,但最终与相同的错误。我以前也使用过Graphviz,没有任何问题。我不知道这次是不是错过了什么。
那么,我如何解决这个问题呢?
的价值,我有的同样的错误在MacOS上使用自制安装graphviz。这个问题似乎是由丢失的依赖项引起的,尽管没有很好的反馈关于究竟丢失了什么。
这些命令(同样,Mac -不是你的平台,但上下文可能有帮助)为我修复了它:
brew install libtool
brew link libtool
brew install graphviz
brew link --overwrite graphviz
具体来说,我认为libtool安装/链接不正确。