Windows Installation

Jens Nevens edited this page Jul 13, 2018 · 3 revisions

If you would like to have a version of Babel2 running natively under Windows then the following instruction are for you.

  • Download and install ​Emacs.

  • Download ​Clozure Common Lisp (CCL). Unpack the archive, rename the folder to ccl and then move it to somewhere where you want to keep it, for example to C:\Program Files\.

  • Download and install​ Gnuplot. Check the box to add gnuplot to the environment variables (or Path).

  • Download and install Graphviz.

  • Download the latest version of ​SLIME. Unpack it and rename the unpacked folder to slime and move it somewhere where you want to keep it, for example to C:\Program Files\.

  • Set your Path system environment variable so that the installed programs can find each other. Go to the Settings 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. Make sure these paths are indeed correct. Here is an example of how your Path variable could look:

    C:\Program Files (x86)\Graphviz2.32\bin;C:\Program Files (x86)\ccl;C:\Program Files (x86)\gnuplot\bin
    

    If you have your programs somewhere else, use those directories.

  • For configuring your Emacs, use a text editor to create a plain text file called .emacs (without extension but with a dot) in your “Application Data” folder. The location of this folder depends on your Windows version, but for example on Windows 10 the folder might be called C:/Users/Your-Username/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.

     (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.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)
    
  • When you start Emacs, it should now automatically start a Lisp.

  • Download and install Quicklisp. First, download the quicklisp.lisp file. Start Emacs and type the following commands in the CCL REPL:

    (load "/path/to/quicklisp.lisp")
    (quicklisp-quickstart:install)
    (ql:add-to-init-file)
    

    The last line while create a file called ccl-init.lisp in your home directory.

  • Download the latest release of Babel2. We assume you place it in your home directory, e.g. C:/Users/Your-Username/.

  • Create an initialisation file for Babel2.

    • Open the file ccl-init.lisp in your home directory, most likely C:/Users/Username/ccl-init.lisp

    • Add the following two lines to the end of this text file:

      (load "C:/Users/Your-Username/Babel2/libraries/asdf")
      (load "C:/Users/Your-Username/Babel2/init-babel")
      
  • The next time you start your Lisp, Babel2 will be automatically initialised. You can test your installation by opening the file Babel2/test-babel-installation.lisp in Emacs. Read the comments in this file and evaluate the expressions one by one.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.