How to Install Lisp on Windows 10
How to Install Lisp on Windows 10
This post is from 2017 and may be out of date. The CLISP and Emacs versions and download links are from 2017.
from Jonathan Fischer and YouTube
Download
- Common LISP.
- Emacs – editor / “IDE”.
- Quicklisp – key LISP library that allows to download and maintain other libraries with ease.
Install
- Install Emacs.
- Unpack contents of Emacs archive.
- Add Emacs directory (e.g.
C:\ntemacs24\bin) to your PATH system variable.
- Create HOME directory.
This is necessary to avoid problems with home directory recognition by lisp.- Create the
C:\HOMEdirectory. - Add a new system variable with Name
HOMEand ValueC:\HOME.
- Create the
- Install CLISP.
- Create an easy-to-reach, easy-to-use directory. I use
C:\lisp. - Install CLISP in that directory.
NOTE: the latest version at the time of writing is 2.49, but I’m having trouble getting it to load SLIME properly (see below), so version 2.48 it is. (fileclisp-2.48-win32-mingw-big.exe). - IMPORTANT:
Installer of the version 2.48 is faulty.
To fix this problem, copysvm.dllout ofclisp-2.48/libsvmdirectory intoclisp-2.48/full.
- Create an easy-to-reach, easy-to-use directory. I use
- Install quicklisp.
- Place
quicklisp.lispintoC:\lisp - Run CLISP and execute the following:
1 2 3
(load "C:/lisp/quicklisp.lisp") (quicklisp-quickstart:install :path "C:/lisp/quicklisp/") (ql:add-to-init-file)
- Place
Install SLIME – Superior Lisp Interaction Mode for Emacs, an Emacs extension to make lisp development seamless.
In the CLISP console execute:1
(ql:quickload "quicklisp-slime-helper")
- Configure Emacs.
- Launch Emacs.
- Type
Ctrl-x, thenCtrl-f. - Enter
~/.emacsin the prompt at the bottom of the window. - Add the following lines to the file:
1 2
(setq inferior-lisp-program "clisp.exe") (load "C:/lisp/quicklisp/slime-helper.el")
- Type
Ctrl-x, thenCtrl-sto save the file.
This post is licensed under CC BY 4.0 by the author.