在windows上安装common lisp开发环境

(2014.1写于CSDN的文章)

最近对lisp非常感兴趣,因此在google中搜索了“common lisp install windows”, 想装一个开发环境玩玩。

第一条结果就是 “Getting going with modern Common Lisp on Windows” :

http://www.mohiji.org/2011/01/31/modern-common-lisp-on-windows/

就按这篇文章安装,大部分过程都非常顺利(我的系统正好是win7!),除了两个地方有点疑问。

第一个地方,

在 “Configure everything so that it plays nice together” 那一节,我在文件系统中无论如何也找不到 C:\Users\username\AppData\Roaming\.clisprc.lisp, 我就新建了一个同名文件, 把该文要求的文本写进去了。

第二个地方,类似的是.emacs 文件找不到,所以新建了一个。

但是按照文章的提供的文本写进去(如下图),


emacs上运行 “M-x slime” 没有任何结果。

我注意到 GNU CLISP 2.48 窗口中有如下图的提示(我把路径都设到了D盘):

我将文本内容作了改动,又尝试把 expand-file-name 后面的 ~/D: 换成 D:,得到下面的文本:

(load (expand-file-name "D:\\quicklisp\\slime-helper.el"))
(setq inferior-lisp-program "clisp.exe")

emacs上运行 “M-x slime” 得到了正确的结果。

自此初步的 common lisp 编程环境就搭建好了,哈哈!

其他参考资料:

ANSI Common Lisp 中文翻譯版 http://acl.readthedocs.org/en/latest/index.html

Installing SBCL, Emacs, and SLIME on Windows XP http://pchristensen.com/blog/articles/installing-sbcl-emacs-and-slime-on-windows-xp/

Scheme 编程环境的配置 http://blog.sina.com.cn/s/blog_5d918d150101ir8e.html


猜你喜欢

转载自www.cnblogs.com/yaoyaohust/p/10228788.html