未提供所需的功能“方案”(emacs中的方案REPL)

时间:2017-05-05 12:36:10

标签: emacs scheme

这可能很容易,但我根本无法在emacs中获得正在运行的方案REPL。

首先我安装了 MIT方案并添加了
(setq scheme-program-name "my/path/to/bin/mit-scheme.exe")
到我的init.el.但是当我输入M-x run-scheme RET时,我得到了错误 Required feature ‘scheme’ was not provided

所以我安装了 quack 并将(require 'quack)添加到我的init.el中 现在,当我启动emacs时,我得到了同样的错误:Required feature ‘scheme’ was not provided

我错过了一步吗?

更新

也许它根本无法在Windows下运行:

  

在gnu-emacs下运行Scheme如果你想以一个方式运行Scheme   gnu-emacs或xemacs中的劣质流程(再次, 这不是一个选项   在Windows机器上 ),那么你需要:

Download the xscheme.elc file. This is a byte-compiled elisp file that tells emacs how to run and interact with MIT Scheme. (Source file
     如果您有兴趣,

是xscheme.el。)

This file should replace the xscheme.elc file that comes with emacs. You'll have to find the appropriate directory on your system.
     

在我的Mandrake Linux系统上,这是目录:   /usr/share/emacs/21.3/lisp。 (如果您这样做,则不需要此步骤   从CS部门机器运行MIT / GNU Scheme。)

Add the following line to your ~/.emacs file

(load-library "xscheme")

来源(2005年起):http://www.cs.rpi.edu/academics/courses/fall05/ai/scheme/starting.html

以下无效

  

快速设置

     

以下是那些想要的人的简短教学清单   赶紧开始吧。以下是对每个步骤的解释。

     
      
  1. 在您的主目录中打开emacs(或任何其他编辑器)。
  2.   
  3. 打开文件“.emacs”并添加以下行:(set-variable (quote scheme-program-name) "stk")
  4.   
  5. 保存文件。您只需要执行一次步骤1-3。如果您在Emacs中编辑该文件,请重新启动Emacs。
  6.   
  7. 启动Emacs并键入以下键序列:    M-x    run-scheme   一个新的缓冲区将打开,其中启动了stk。
  8.   

来源:http://www-users.cs.umn.edu/~gini/1901-07s/emacs_scheme/

1 个答案:

答案 0 :(得分:2)

未提供错误"所需的功能方案"意味着第一个" scheme.el"在您的加载路径中找到的不包含提供语句。您的Emacs安装中断(不太可能),或者(更有可能)您已经安装了一些隐藏默认设置的随机scheme.el。找到并删除它。例如,尝试M-x list-load-path-shadows。