7

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:
$
tomodachi
  • 251
  • 3
  • 9
Younes
  • 1,635
  • 1
  • 19
  • 33

1 Answers1

12

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.

Younes
  • 1,635
  • 1
  • 19
  • 33
  • Could you suggest how to do that if I do not have sudo command. (on server at Heroku)? – Sashko Lykhenko Nov 06 '14 at 22:26
  • The problem is linked to a bug in the install process. Hence, in case `dot` has been installed in privileged mode, you need to have hand on the same privileged mode to fix the problem. – Younes Nov 07 '14 at 10:41
  • 2
    Surprisingly, even new releases (2.44) still as this issue... – jpo38 Jun 11 '20 at 14:46
  • The graphviz-gd package is also required. See also https://stackoverflow.com/questions/35688320/graphviz-seems-doesnt-support-png-and-map – Bernhard M. Jul 15 '20 at 07:14