Dot doesn't support any format in a newly installed Graphviz

青春壹個敷衍的年華 提交于 2019-12-05 03:50:50

问题


I have installed Graphviz on Fedora using the recommended procedure described at GraphViz official site. However, I'm not able to convert a basic hello.dot file using dot command.

My hello.dot file is:

graph hello {
    Node1 [label="Hello, World!"]
}

The error is:

$ dot hello.dot -Tpng -o hello.png
Format: "png" not recognized. Use one of:
$

回答1:


It looks like there is a bug in the official install. After running the command 'dot -c', the problem has been solved.

See here for more details.



来源:https://stackoverflow.com/questions/22427184/dot-doesnt-support-any-format-in-a-newly-installed-graphviz

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!