I'm trying to install common lisp on an Ubuntu system with no success so far . I'm newbie in emacs and linux . I tried using lispbox by downloading the tar ball and running sh lispbox.sh command but the shell reports Bad substitution error . What I need is step-by-step instruction on how to get common lisp running with emacs so that I can start programming .
2 Answers
- Use your package manager to install SBCL (Steel Bank Common Lisp).
- Download Quicklisp from http://quicklisp.org. There are complete instructions there, but I shall try to filter the important steps:
- Run
sbcl --load "quicklisp.lisp". - At the SBCL prompt, run
(quicklisp-quickstart:install). - At the SBCL prompt, run
(ql:add-to-init-file)(press Enter to confirm). - At the SBCL prompt, run
(ql:quickload "quicklisp-slime-helper"). This will create a file that you can load in your.emacsto setup Slime.
Now you can open your Emacs, do M-x slime and hack away. Be sure to read the documentation for Quicklisp and Slime.
Comments
go to https://portacle.github.io/ (a newer lispbox-like ready-to-use emacs/SLIME-sbcl-quicklisp system).
download and install it and start it following instructions there.
For ubuntu 64 bit:
wget https://github.com/portacle/portacle/releases/download/1.2b/lin-portacle.tar.xz
tar xJf lin-portacle.tar.xz
cd portacle
./portacle.run
# enjoy :)
Minimal set of commands needed to program common lisp in SLIME by me