简体   繁体   English

Graphviz Dot文件无法在Windows Emacs中编译

[英]Graphviz Dot file failing to compile in Windows Emacs

I took the following steps to use Graphviz Dot mode in emacs: 我采取以下步骤在emacs中使用Graphviz Dot模式:

  • as per instructions at http://ppareit.github.io/graphviz-dot-mode/ , added 按照http://ppareit.github.io/graphviz-dot-mode/上的说明,添加了

    (load-file "PATH_TO_FILE/graphviz-dot-mode.el") (加载文件“ 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. 到我的.emacs文件(对我来说是C:/emacs/.emacs),然后将文本从http://www.graphviz.org/Misc/graphviz-dot-mode.el复制到该路径中的文件。

  • in Emacs, created a new file (cx cf) and named it something.dot. 在Emacs中,创建了一个新文件(cx cf)并将其命名为something.dot。 Copied the DOT text from the aforementioned website, which became highlighted for dot syntax. 从上述网站复制了DOT文本,该文本以点语法突出显示。

  • Selected all text and pressed Cc c. 选择所有文本,然后按Cc 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. 点-Tpng c:/emacs/dot_test.dot> c:/emacs/dot_test.png'点'不被识别为内部或外部命令,可操作程序或批处理文件。

    Compilation exited abnormally with code 1 at Thu Jul 30 06:36:12 编译在7月30日星期四06:36:12以代码1异常退出

You have to first install graphviz to your system. 您必须先将graphviz安装到系统上。 The Windows installer is found here . Windows安装程序位于此处

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. 我能够成功使用它,而无需对我的PATH进行任何更改(他们说这是一个问题),但是请注意,您可能需要将其添加到您的路径中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM