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

1

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:
$
Decode answered 15/3, 2014 at 17:23 Comment(0)
D
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.

Decode answered 15/3, 2014 at 21:53 Comment(4)
Could you suggest how to do that if I do not have sudo command. (on server at Heroku)?Shirleeshirleen
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.Decode
Surprisingly, even new releases (2.44) still as this issue...Hamachi
The graphviz-gd package is also required. See also #35688820Pock

© 2022 - 2024 — McMap. All rights reserved.