惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Martin Fowler
Martin Fowler
大猫的无限游戏
大猫的无限游戏
J
Java Code Geeks
罗磊的独立博客
雷峰网
雷峰网
G
Google Developers Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
爱范儿
爱范儿
B
Blog RSS Feed
腾讯CDC
Apple Machine Learning Research
Apple Machine Learning Research
D
Docker
Recent Announcements
Recent Announcements
T
Tailwind CSS Blog
博客园 - 聂微东
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Vercel News
Vercel News
小众软件
小众软件
人人都是产品经理
人人都是产品经理
云风的 BLOG
云风的 BLOG
IT之家
IT之家
Blog — PlanetScale
Blog — PlanetScale
I
InfoQ
S
SegmentFault 最新的问题

博客园 - NeilChen

恢复 Windows 7 的“回到父目录”按钮 FireFox 脑残的安全设定 SQL Server 事务自动回滚 下载 infoq 网站视频 也做了一下腾讯前端面试题 Select prototyping tools Lisp in Small Parts TechTalk by Peter Seibel on Common Lisp 时隔3年,再做双倍超立方数的题目,这次用Lisp Racket, SICP stream learning Operation is not valid due to the current state of the object lisp 笔记 - 闭包 Common Lisp 在 Windows 上的开发环境比较 翻译英文技术文章是一件很可耻的事情吗? 写了个博客备份的 ruby 程序 体验 Clozure CL 试用 Portable Allegro Serve 关于 Business Rule Engine Irony - 一个 .NET 语言实现工具包
Windows XP, Emacs, CLisp, SLIME
NeilChen · 2011-12-14 · via 博客园 - NeilChen

LispBox 已经不再维护了,很多代码跑不起来,只好手工配置这套工具。

终于搞定了所有的安装配置,好麻烦。其中 clisp 最新的2.49版本配置了总是报错,只好用2.48版。其他都是当前最新的。

Emacs 23.3

CLisp 2.48

SLIME (CVS current snapshot)

安装的步骤如下。

  1. 首先下载 clisp 2.48 的 exe 版本,安装到 c:\clisp.
  2. 打开 CLisp,查看当前 HOME 目录的位置。方法是输入 (user-homedir-pathname). 找到后,在其中建立一个空的文本文件命名为 .clisprc.lisp.
    我机器上的目录如下:C:\Documents and Settings\[UserName]\.clisprc.lisp
  3. 安装 Emacs. 直接将下载的 zip 包解压到一个目录就好。我是 c:\emacs.
  4. 下载 SLIME 的 CVS 快照版本,解压到 c:\emacs\slime-2011-12-13
  5. 打开 Emacs,确定当前的 HOME 目录。方法是输入 (insert (getenv “HOME”)) 命令后输入 C-c C-e 来执行,看输出。我机器上得到的结果是:
    C:\Documents and Settings\[UserName]\Application Data
  6. 建立一个文本文件到:
    C:\Documents and Settings\[UserName]\Application Data\.emacs.d\init.el
    输入内容如下并保存:
  7. ;;; Initialize slime.
    (setq inferior-lisp-program "clisp")
    (add-to-list 'load-path "c:\\emacs\\slime-2011-12-13\\")
    (require 'slime-autoloads)
    (eval-after-load "slime"
      '(progn (slime-setup '(slime-fancy))))
    
    ;;; Automatically use slime mode on .cl and .lisp files.
    (add-to-list 'auto-mode-alist '("\\.cl$" . common-lisp-mode))
    (add-to-list 'auto-mode-alist '("\\.lisp$" . common-lisp-mode))
    
    ;;; Start slime.
    (slime)
  8. 安装 Quicklisp. 下载 quicklisp.lisp 后,打开 CLisp 控制台 load 该文件,然后执行之,按提示执行安装命令即可。
  9. 修改配置文件 C:\Documents and Settings\[UserName]\.clisprc.lisp 如下:
  10. ;;; Play nice with shebangs
    (set-dispatch-macro-character #\# #\!
     (lambda (stream character n)
      (declare (ignore character n))
      (read-line stream nil nil t)
      nil))
    
    ;;; The following lines added by ql:add-to-init-file:
    #-quicklisp
    (let ((quicklisp-init (merge-pathnames "quicklisp/setup.lisp" (user-homedir-pathname))))
      (when (probe-file quicklisp-init)
        (load quicklisp-init)))

安装过程完全参考的这里:http://yellosoft.us/installing-common-lisp

接下来可以大干一场了。