SiteMap RecentChanges

Compiling SBCL

First, get the source:

   http://prdownloads.sourceforge.net/sbcl/sbcl-1.0.10-source.tar.bz2?download

Now untar it and switch to the newly-created directory. Before you do anything else, you're probably going to want to disable threading if you're going to run StumpWM. To do this, create a file called `customize-target-features.lisp' in SBCL's top directory (the one that you got when you unpacked the code). Add the following code:

(lambda (features)
  (flet ((enable (x)
           (pushnew x features))
         (disable (x)
           (setf features (remove x features))))
    ;; Everything after this line should start with either `enable' or `disable'
    ;; and be part of this same lambda.
    (disable :sb-thread)))

NOTE: threads are not enabled by default. No need to disable them.

Now, run sh make.sh

NOTE: You need a lisp to do this. clisp or sbcl will work.

When it's done compiling, install it somewhere. You already have sbcl installed, so how about this:

$ export -n SBCL_HOME # it gets annoyed if this exists already
$ INSTALL_ROOT=/home/yourusername/opt sh install.sh

Now you need to tell sbcl where to find itself. So set SBCL_HOME to /home/yourusername/opt/lib/sbcl either in your .bashrc or in the shell where you build the stumpwm binary.

To compile stumpwm you need that SBCL has some modules compiled:

That's relatively easy since SBCL includes asdf by default. Try to open sbcl and do:

    (require 'asdf)
    (require 'asdf-install)
    (asdf-install:install 'clx)
    (asdf-install:install 'cl-ppcre)

Then build stumpwm. See SetUp