Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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:
$
like image 911
Younes Avatar asked Mar 15 '14 17:03

Younes


1 Answers

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.

like image 182
Younes Avatar answered Sep 18 '22 11:09

Younes