简体   繁体   English

emacs中的八度(搜索程序,例如文件或目录)

[英]octave in emacs (searching for program so such file or directory)

I'm trying to run Octave from within emacs (I'm mostly a beginner at both but have the hang of emacs shortcuts now). 我正在尝试从emacs中运行Octave(我都是这两者的初学者,但是现在掌握了emacs快捷方式)。 When I try run-octave as suggested here , I get the message. 当我按照此处的建议尝试八度音阶时 ,会收到消息。

Searching for file, no such file or directory, octave 搜索文件,无此文件或目录,八度

Disclaimer: I'm using Windows Vista. 免责声明:我正在使用Windows Vista。 Octave is in c:\\Octave... the emacs default directory is c:\\users\\username\\ 八度位于c:\\ Octave ... emacs的默认目录为c:\\ users \\ username \\

and I added this to the _emacs file: 并将其添加到_emacs文件中:

(autoload 'octave-mode "octave-mod" nil t) (自动加载“八度模式”“八度模式”无)

    (setq auto-mode-alist
            (cons '("\\.m$" . octave-mode) auto-mode-alist))

(autoload 'run-octave "octave-inf" nil t) (自动加载'run-octave“ octave-inf”无t)

Any tips on how to tell emacs where octave is? 关于如何告诉emacs八度的任何提示?

Thank you for your help in advance, Massagran 谢谢您的提前帮助,Massagran

You need to make sure the octave binary, probably under "C:\\Octave\\bin", is in the search path. 您需要确保八度二进制文件(可能在“ C:\\ Octave \\ bin”下)位于搜索路径中。

To check this, right click your "Computer" icon on the Desktop or the Start Menu, right-click, select "Properties" and then select "Advanced System Settings". 若要进行检查,请在桌面或“开始”菜单上右键单击“计算机”图标,右键单击,选择“属性”,然后选择“高级系统设置”。 Click the "Environments variables" button and look for PATH. 单击“环境变量”按钮,然后查找PATH。 If you can't find the octave directory mentioned in this variable append ";C:\\Octave\\bin". 如果找不到该变量中提到的八度目录,请附加“; C:\\ Octave \\ bin”。

For more information on how to set the PATH variable check for example here . 有关如何设置PATH变量的更多信息,请在此处进行检查。

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

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