Installing a Lisp environment

on Windows

Instead of installing a lisp, gnuplot, graphviz and Babel2 on your windows machine it might be more convenient to opt for the Virtual Machine instructions[cached version]. This will give you a virtual linux installation with everything pre-installed. You can then simply ignore the following instructions. If you would like to have a version running natively under Windows then the following instruction are for you.

  1. Download and install ​EmacsW32. Choose "Download latest EmacsW32+Emacs patched"
  2. Download ​Clozure Common Lisp (CCL). Unpack the archive and then move the ccl folder somewhere where you want to keep it, for example to C:\Program Files\.
  3. Download and install​ Gnuplot. You should twice go into a subfolder until you see a file called gpxxx-win32-setup.exe.
  4. Download and install Graphviz. Download the .msi file for the stable release.
  5. Download the latest version of ​Slime (use ”cvs snapshot in tarfile format”). Unpack it. Depending on the Zip program that you use, you might have to unpack the folder in two steps (first the .tgz file and then the .tar file inside). If you don’t have a program to unpack .tgz files, try ​7-Zip. Rename the unpacked folder from slime-xxxx-xx-xx to slime and move it somewhere else (e.g. to c:\Program Files\).
  6. Set your Path system environment variable so that the installed programs can find each other. Go to Start Menu (→ Settings) → Control Panel → System → Advanced (System Settings) → Environment Variables... (button at the bottom of tab Advanced) → System Variables and then edit the value for the variable Path (which is in the list of System variables) by appending the directories of ccl, gnuplot and graphviz binaries. For example:
        C:\Program Files (x86)\Graphviz2.32\bin;C:\Program Files (x86)\ccl;C:\Program Files (x86)\gnuplot\bin
    Make sure these paths are indeed correct. If you have your programs somewhere else, use those directories. The Program Files folder might also not be exactly the same on all windows versions (the x86 is usually not there on XP), and also the Graphviz version has probably changed. Changing your path on Windows 7 should look something like this.
  7. For configuring your Emacs, use a text editor to create a plain text file called ‘_emacs' (without extension but with underscore) in your “Application Data” folder. The location of this folder depends on your Windows version, but for example on Windows 7 the folder might be called C:/Users/YourName/AppData/Roaming. For finding out where your “Application Data” folder is, open the Windows command prompt (from the start menu) and type
        echo %APPDATA%
    Add the following lines to this .emacs file and adapt the path to your Slime folder.
      '(cua-mode t nil (cua-base))
      '(emacsw32-style-frame-title t)
      '(show-paren-mode t)
      '(column-number-mode t)
      '(indent-tabs-mode nil)
      '(make-backup-files nil))
     (setq inferior-lisp-program "wx86cl64.exe")
     ;;; use this in 32Bit Windows
     ;;(setq inferior-lisp-program "wx86cl.exe")
     (add-to-list 'load-path "c:/Program Files/slime")
     (require 'slime)
     (slime-setup '(slime-repl slime-autodoc slime-fancy-inspector))
     ;;; this automatically starts the lisp
     (command-execute 'slime)
  8. Done! When you start Emacs it hopefully automatically starts a Lisp and looks like this
  9. If not, then something in the steps above went wrong, try again.
  10. If you are still using Internet Explorer (really?) then please install either Chrome or Firefox as these two browsers work well with the Babel2 web interface..
  11. Time to install Babel 2.