CMUCL

making CMUCL play nice on Debian.

64-bit support

There is no 64-bit version of CMUCL at this time (2007/03/27). Install ia32-libs, then use the i386 package and force install it (dpkg --force-all -i ...). If, in the future, this doesn't work, check out the "Debian GNU/Linux AMD64 HOW-TO" for instructions on building a 32-bit chroot.

Readline

Edi Weitz has written instructions.

Install rlwrap (it's in apt). Add an alias, generate the completions file.

Running executables (with binfmt_misc)

The Debian CMUCL package provides a trampoline script called cmucl-run which can be used to run FASL files (or lisp source). The package binfmt-support registers binfmt_misc support for FASL files with cmucl-run. As long as cmucl and binfmt-support are installed, you should be able to run FASL files as normal executables.

Shell scripts

The following script, written by Erik Enge, can be used as an "interpreter" for lisp source (ie #!/usr/bin/env runlisp).

#!/bin/sh
# -*- mode: sh -*-

# $Id: runlisp,v 1.3 2003/04/22 02:33:53 erik Exp $
# $Source: /home/cvsd/repo/bin/runlisp,v $

# A handy script to run Lisp as shellscripts.  In the top of your
# file, put:
#
#  #!/usr/bin/env runlisp
#
# and stick runlisp (this script) somewhere in your path.  Then you
# can have regular-looking shellscripts that are written in Lisp.

# If you have another Lisp implementation and know what arguments to
# pass to it for this to work, feel free to add it and send me
# (erik@nittin.net) the patch.


if [ -f /usr/bin/sbcl ]; then
   /usr/bin/sbcl --noinform --disable-debugger --eval '(set-dispatch-macro-character #\# #\! (lambda (stream bang number) (declare (ignore bang number)) (read-line stream) t))' --load $1 --eval '(quit)'
elif [ -f /usr/bin/lisp ]; then
   /usr/bin/lisp -quiet -batch -noinit -eval '(set-dispatch-macro-character #\# #\! (lambda (stream bang number) (declare (ignore bang number)) (read-line stream) t))' -load $1 -eval '(quit)'
else
   echo "$0: could not find a Lisp I know how to call"
fi

vim

This has little to do with Debian, but VIlisp is useful for lisping with vim.

(Flames about editors can go to devnull. Really. Go outside and play with a kitten or something.)