Installing a Lisp environment

on Linux

  1. Install ​Emacs, ​Gnuplot and ​Graphviz as follows (in terminal)
        sudo apt-get install emacs gnuplot graphviz
    
  2. Download ​Clozure Common Lisp (CCL). Unpack the archive and then move the ccl folder somewhere where you, (for example to /usr/local/share/ccl).
  3. Download the latest ​Slime, unpack it and move it somewhere, for example to /usr/local/share/slime. Don’t use the slime debian package and don’t use the slime that comes with Emacs.
  4. Create or edit the Emacs initialization file ~/.emacs with these commands (adapt the paths to your slime and to your ccl):
     (custom-set-variables
      '(cua-mode t nil (cua-base))
       ;;; uncomment this if you don't want the tool bar
       ;; '(tool-bar-mode nil)
       '(show-paren-mode t)
       '(column-number-mode t)
       '(indent-tabs-mode nil)
       '(make-backup-files nil))
    
     (add-to-list 'load-path "/usr/local/share/slime")
     (require 'slime)
    
     (setq inferior-lisp-program "/usr/local/share/ccl/lx86cl64")
     ;;; use this in 32Bit Linux
     ;;(setq inferior-lisp-program "/usr/local/share/ccl/lx86cl")
    
     (slime-setup '(slime-repl slime-autodoc slime-fancy-inspector))
    
     ;;; this automatically starts the lisp
     (command-execute 'slime)
    
  5. Start Emacs. It should automatically start a lisp listener and look like this:
  6. If not, check the *messages* buffer of Emacs to see what went wrong. It might for example be that your previous installation of Emacs automatically loaded another slime.
  7. Finally, install ​Chrome (recommended, sudo apt-get install chromium-browser) or ​Firefox for interacting with the web interface of Babel2.
  8. Time to install Babel 2.