Dot在新安装的Graphviz中不支持任何格式 [英] Dot doesn't support any format in a newly installed Graphviz

查看:129
本文介绍了Dot在新安装的Graphviz中不支持任何格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已在GraphViz官方网站上使用推荐的步骤描述在Fedora上安装了Graphviz.但是,我无法使用dot命令转换基本的hello.dot文件.

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.

我的hello.dot文件是:

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

错误是:

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

推荐答案

官方安装中似乎存在错误.运行命令'dot -c'后,问题已解决.

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.

这篇关于Dot在新安装的Graphviz中不支持任何格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆