Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
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
ccland then move it to somewhere where you want to keep it, for example to
Download and install Gnuplot. Check the box to add gnuplot to the environment variables (or
Download and install Graphviz.
Download the latest version of SLIME. Unpack it and rename the unpacked folder to
slimeand move it somewhere where you want to keep it, for example to
Pathsystem 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
graphvizbinaries. Make sure these paths are indeed correct. Here is an example of how your
Pathvariable 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
.emacsfile 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.
(load "/path/to/quicklisp.lisp") (quicklisp-quickstart:install) (ql:add-to-init-file)
The last line while create a file called
ccl-init.lispin your home directory.
Download the latest release of Babel2. We assume you place it in your home directory, e.g.
Create an initialisation file for Babel2.
Open the file
ccl-init.lispin your home directory, most likely
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.lispin Emacs. Read the comments in this file and evaluate the expressions one by one.