Graphviz Dot file failing to compile in Windows Emacs

笑着哭i 提交于 2019-12-12 05:28:36

问题


I took the following steps to use Graphviz Dot mode in emacs:

  • as per instructions at http://ppareit.github.io/graphviz-dot-mode/, added

    (load-file "PATH_TO_FILE/graphviz-dot-mode.el")

    to my .emacs file (C:/emacs/.emacs for me), and copied the text from http://www.graphviz.org/Misc/graphviz-dot-mode.el to a file in that path.

  • in Emacs, created a new file (c-x c-f) and named it something.dot. Copied the DOT text from the aforementioned website, which became highlighted for dot syntax.

  • Selected all text and pressed C-c c. Was given the following message:

    dot -Tpng c:/emacs/dot_test.dot > c:/emacs/dot_test.png 'dot' is not recognized as an internal or external command, operable program or batch file.

    Compilation exited abnormally with code 1 at Thu Jul 30 06:36:12


回答1:


You have to first install graphviz to your system. The Windows installer is found here.

I was able to use it successfully without making any changes to my PATH (which they say would be an issue), however be aware you may need to add it to your path.



来源:https://stackoverflow.com/questions/31727211/graphviz-dot-file-failing-to-compile-in-windows-emacs

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