Graphviz Dot文件无法在Windows Emacs中编译 [英] Graphviz Dot file failing to compile in Windows Emacs

查看:115
本文介绍了Graphviz Dot文件无法在Windows Emacs中编译的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我采取了以下步骤在emacs中使用Graphviz点模式:

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

(加载文件 PATH_TO_FILE / graphviz-dot-mode.el)

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

到我的.emacs文件(C:/我的emacs / .emacs),然后从 http:// www复制了文本。 graphviz.org/Misc/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中,创建了一个新文件( cx cf),并将其命名为something.dot。从上述网站复制了DOT文本,并以点语法突出显示了该文本。

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.

选择所有文本并按C-c c。收到以下消息:

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'不是被识别为内部或外部命令,
可操作程序或批处理文件。

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.

编译在代码7月30日星期四06:36:12异常退出,代码1 p>

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

推荐答案

您必须首先将graphviz安装到系统中。在此处找到Windows安装程序。

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

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

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.

这篇关于Graphviz Dot文件无法在Windows Emacs中编译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆