0

我正在尝试在Imagination Creator CI20 Mips 板上使用带有SLIME和 Swank 的Emacs来学习 Common Lisp。我正在使用 SBCL 和 Clisp 作为我的编译器/解释器(主要是 SBCL,通常设置为低级lisp模式);然而,我确实将 SBCL 和 Clisp 都设置为低级 Lisp 模式对此进行了测试,但两者都失败了。我尝试运行 SLIME,但在尝试加载或编译 Swank 文件时总是失败。其中一次尝试的错误消息表明它在架构上遇到了困难(Mips - little endian)。我正在运行开发板随附的 Debian 7 Wheezy (Mipsel) 的默认安装。

我尝试使用通过 apt-get 从 Debian 存储库安装的SLIME,另一次使用 SLIME 的 Melpa 安装,最后一次尝试使用 SLIME 的 Github git 存储库(最新)。尽管错误消息有时略有不同,但它们都失败了。Emacs 23 和 24 都失败了。

我使用 SBCL 作为编译器,在我尝试使用 SLIME 的 Github 存储库时附加了错误消息/模糊信息。SBCL 是从 SBCL 存储库安装的,因为 Mipsel Wheezy 似乎在 Debian 存储库中没有它。它看起来确实是一个较旧的版本,但它是SBCL 网站上 Mips 架构的最新二进制文件。SBCL 在命令行中作为 REPL 运行良好。

(progn (load "/usr/share/common-lisp/source/slime/swank-loader.lisp" :verbose t) (funcall (read-from-string "swank-loader:init")) (funcall (read-from-string "swank:start-server") "/tmp/slime.4482"))

This is SBCL 1.0.28, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://www.sbcl.org/>.

SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses.  See the CREDITS and COPYING files in the
distribution for more information.
* 
; loading #P"/usr/share/common-lisp/source/slime/swank-loader.lisp"
WARNING:
   No architecture feature found in (POWERPC PPC X86 X86-64 X86_64 AMD64 I686
                                     I586 I486 PC386 IAPX386 SPARC64 SPARC
                                     HPPA64 HPPA ARM PENTIUM3 PENTIUM4 JAVA-1.4
                                     JAVA-1.5 JAVA-1.6 JAVA-1.7).

debugger invoked on a SB-C::INPUT-ERROR-IN-COMPILE-FILE:
  READ failure in COMPILE-FILE:
    SB-INT:SIMPLE-READER-PACKAGE-ERROR at 5799 (line 150, column 52) on #<SB-SYS:FD-STREAM for "file /usr/share/common-lisp/source/slime/swank-loader.lisp" {50007F71}>:
      Symbol "APPLY-OUTPUT-TRANSLATIONS" not found in the ASDF package.

Type HELP for debugger help, or (SB-EXT:QUIT) to exit from SBCL.

restarts (invokable by number or by possibly-abbreviated name):
  0: [ABORT] Exit debugger, returning to top level.

(SB-C::READ-FOR-COMPILE-FILE
 #<SB-SYS:FD-STREAM for "file /usr/share/common-lisp/source/slime/swank-loader.lisp" {50007F71}>
 5418)
0] 
4

1 回答 1

3

该版本的 SBCL 太旧,无法与当前的 SLIME 一起使用。尝试使用http://www.sbcl.org的源代码构建和安装新版本的 SBCL,看看是否能改善这种情况。

于 2015-02-06T15:12:41.330 回答