a developer\’s life

Compiling SBCL-0.9.15 with MingW/MSys on Win32

Posted by Michael on August 26, 2006

This is the result from this thread on comp.lang.lisp and how I got sbcl-0.9.15 compiled & working on my Windows XP System. No guarantee that this works on EVERY system.

Setting up the enviroment for compilation with MingW/MSys

  1. Download MingW-5.3.0 installer here.
  2. install
  3. Get MSys-1.0 here
  4. install
  5. download the other stuff (from bash to gawk) from sourceforge
  6. copy the contents of each into your <\MSYS\1.0> directory.

Installation of sbcl 0.9.12 binaries (you need this for compilation)

  1. Download sbcl-0.9.12-win32 , unzip in a temporary directory.
  2. Create another dir like, for example c:\SBCL
  3. Add this path ( c:\SBCL ) to the system path in your windows enviroment
  4. Add an enviroment variable SBCL_HOME and set it to a path like c:/SBCL/lib/sbcl (note the forward slashes !)
    Setup will create necessary subdirectories
  5. I had to open the install.sh in the sbcl-0.9.12 directory in an texteditor and changed the line
    cp src/runtime/sbcl $BUILD_ROOT$INSTALL_ROOT/bin/
    cp src/runtime/sbcl.exe $BUILD_ROOT$INSTALL_ROOT/bin/
    (without installation was interrupted with an Segementation fault)
  6. Start MSys and run following commands
  7. cd /path/to/sbcl-0.9.12-binaries # example: C:/sbcl-0.9.12 (note forward slashes)
  8. INSTALL_ROOT=”c:/SBCL” sh install.sh # this is the install command
  9. close MSys after installation completed
  10. open a DOS window and test installation with executing the command
    > sbcl
  11. If you get an error, reboot to set the enviroment properly, and test again

Compilation of sbcl-0.9.15 (Actual release 0.9.16 was broken on my WindowsXP)

  1. Download sources from sourceforge
  2. Unzip in a directory of your choice
  3. Start MSys, and run following commands
  4. $ cd /path/to/sbcl-0.9.15/sources (example: C:/sbcl-0.9.15 – note forward slashes)
  5. $ sh make.sh “sbcl” (I used it with the “sbcl” arg otherwiseI got an error)
  6. (wait till compilation finishes)
  7. $INSTALL_ROOT=”c:/SBCL” sh install.sh (installation overwrites 0.9.12 files)

Now you got a working sbcl-0.9.15 system !
Have fun !

Many thanks go to Jack Unrue and K.R.Sreeram for their help.
Without I wouldn’t have managed this.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: