wiki:Babel2InstallWindows

Windows

  1. Download and install EmacsW32 (click on “Download latest EmacsW32 + binaries for Emacs” and then on “Download latest EmacsW32+Emacs patched”).
  1. Download the Windows version of Clozure Common Lisp. Unpack the .zip file and move the ccl folder somewhere, e.g. to c:\Program Files\.
  1. Download Gnuplot from here (scroll down to the latest version and then download the gpXXXwin32.zip file). Unpack the .zip file and manually move the gnuplot folder somewhere, for example to c:\Program Files\.
  1. Download and install Graphviz from here.
  1. 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\).
  1. Set your Path system environment variable so that the installed programs can find each other. Go to Start Menu → Settings → Control Panel → System → Advanced → Environment Variables → System Variables and then edit the value for the variable Path.
    https://ai.vub.ac.be/tracbabel2/BabelInstallation/windows-path-settings1.png
    Append the directories of the ccl, gnuplot and graphviz binaries, for example
     C:\Program Files\Graphviz2.24\bin;C:\Program Files\ccl;C:\Program Files\gnuplot\bin
    
    (This is an example. Replace the directories with the folders where you installed these tools.)
  1. For configuring your Emacs, use a text editor to create a plain text file called ‘_emacs' (without extension) in your “Application Data” folder. The location of this folder depends on your Windows version, but for example on my Windows XP the folder is called {{{c:/Documents and Settings/Your? Name/Application? Data/}. For finding out where your “Application Data” folder is, open the Windows command prompt (from the start menu) and type
     echo %APPDATA%
     and then ENTER.
    
    Note this folder is “hidden”, so it might be that you will have to activate that hidden files are shown. Add these lines to your _emacs file (adapt the path to your slime folder):
     (custom-set-variables
      '(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")
     ;;; use this in 32Bit Windows
     ;;(setq inferior-lisp-program "wx86cl")
    
     (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)
    
  1. Done! When you run Emacs now it should automatically start the lisp and look somehow like this:
    http://ai.vub.ac.be/tracbabel2/BabelInstallation/emacs-on-windows.png
    If not, then something went wrong with the steps above (try again).
  1. Note that in ccl (version 1.3, August 2009) on Windows, there might be an occasional “Fault during read of memory address” message. Just ignore that message, close the message buffer and continue.
  1. Finally, install either Google Chrome (recommended) or Firefox (Internet Explorer doesn’t work with the web interface of Babel2).
  1. Take 30 minutes to read how to use Emacs together with Lisp and then follow the instructions for setting up Babel2.
Last modified 12 years ago Last modified on 12/14/11 16:09:34