Step by step to install and run lsw in windows (I hope)

28 views
Skip to first unread message

Alan Ruttenberg

unread,
Oct 19, 2006, 12:30:21 AM10/19/06
to M. Scott Marshall, lsw-d...@groups.google.com
Here are some instructions that I have written up. Some of this stuff
you know already, but it would be helpful if you could verify that
they work as advertised. Let me know your experiences. I expect that
you should at least svn update and download the current version of
slime.

----

Instructions for running lsw inside emacs using slime under windows
(but not under cygwin emacs).

Assumes you have nothing installed. Adjust accordingly if you do.

1. Install emacs. You can get it at ftp://ftp.gnu.org/emacs-21.3-
fullbin-i386.tar.gz
You should be able to double click this file and have it expand. If
not, then download
and install Stuffit expander from http://www.stuffit.com/win/expander/
index.html

The expanded directory will be called emacs-21.3. Inside that there is
a bin folder, and inside that a program called runemacs.exe. Create a
shortcut to that
and put it on your desktop.

2. Run emacs. Go into shell mode (M-x shell).

Check your java version by running "java --version".

You should see something like

java version "1.5.0_09"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b01)
Java HotSpot(TM) Client VM (build 1.5.0_09-b01, mixed mode, sharing)

It needs to be 1.5 or higher. If you get an error, or have an earlier
version
get and install java 1.5 from http://java.sun.com/javase/downloads/
index.jsp

Choose "J2SE(TM) Runtime Environment 5.0 Update 9"

quit emacs, run the installer, then try step 2 again.

3. Install subversion. You can get it from

http://subversion.tigris.org/files/documents/15/34093/svn-1.4.0-
setup.exe

Subversion installs by default at c:/Program Files/Subversion/bin/.
You'll either have
to edit your default path environment variable to include this, or
run the following command
each time you enter a shell to do a checkout

set PATH=%PATH%;c:/Program Files/Subversion/bin/

4. In emacs shell mode, execute

set PATH=%PATH%;c:/Program Files/Subversion/bin/

Decide where you want to keep lsw. Suggestion: c:/repos/lsw. cd to
that directory.

Get LSW by executing

svn co http://svn.mumble.net:8080/svn/lsw/trunk

You should see a bunch of stuff downloading...
Once that is done, execute

cd trunk

5. Download the CVS version of slime
http://common-lisp.net/cgi-bin/viewcvs.cgi/root.tar.gz?
root=slime&view=tar

After unpacking move the slime directory to
c:/repos/lsw/trunk/emacs/ (or wherever you decided to put lsw)

6. Edit "~/.emacs" and add a line:

(load "c:/repos/lsw/trunk/emacs/windows-emacs-init.lisp")

(adjust if you put lsw somewhere else)

You may also want to adjust how much memory lsw uses. The default is
1024M. If you
want to use less, e.g. 300M, then add another line:

(setenv "ABCL_RAM" 300)

7. Quit and restart emacs. If all worked properly you should be able
to do

M-x slime

and it will start up. Eventually you will be put into a buffer
called "*slime-repl abcl*" which should say something like:

; SLIME 2006-10-11
CL-USER>

A quick way to make sure that all the parts are working would be to
execute first

(load "start")
or
(asdf::oos 'asdf::load-op 'owl)

and then

(show-classtree "http://www.biopax.org/release/biopax-level2.owl")

That will pop up an interactive tree view of the biopax ontology.
Click around.
(on my virtual pc instance, this seemed to hang until I did C-c C-c)

You might want to

(run-all-tests)


alanr

unread,
Oct 21, 2006, 12:11:37 PM10/21/06
to lsw-discuss
A simplification and a fix: (now tested on a non-virtual pc)

1) Added slime to the lsw svn, so you don't have to go install slime
(ignore step 5)
2) Made slime init (setq swank::*use-dedicated-output-stream* t) by
default (otherwise slime doesn't work with abcl)

"java --version" should be "java -version" (one dash instead of 2)

I had an issue when installing this on my work pc - an older version of
java was installed and the PATH wasn't updated to see the new java. In
the System control panel, advanced tab, I edited the PATH (my settings,
not the system settings) to include (at the beginning) the path to the
java bin directory (c:/Program Files/Java/jre1.5.0_09/bin IIRC)

-Alan

Reply all
Reply to author
Forward
0 new messages