How to use ASDF in SBCL 1.0.22 (Vista) ?

Discussion of Common Lisp
Post Reply
anta40
Posts: 19
Joined: Fri Oct 10, 2008 10:27 pm
Contact:

How to use ASDF in SBCL 1.0.22 (Vista) ?

Post by anta40 » Fri Nov 14, 2008 1:01 am

I'm using SBCL v 1.0.22 in Win Vista Home Basic.

Based on this tutorial, I do the following things :
1. Create a HOME variable, pointed to C:\Users\Andre

2. In the HOME directory, I make a .sbclrc file, which content is :
(require :asdf)
(require :asdf-install)
(pushnew 'asdf-install:sysdef-source-dir-search asdf:*system-definition-search-functions*)

This is what I get when I invoke sbcl
This is SBCL 1.0.22, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://www.sbcl.org/>.

SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses. See the CREDITS and COPYING files in the
distribution for more information.

This is experimental prerelease support for the Windows platform: use
at your own risk. "Your Kitten of Death awaits!"
; loading system definition from
; C:\Program Files\Steel Bank Common Lisp\1.0.22\sb-bsd-sockets\sb-bsd-sockets.a
sd
; into #<PACKAGE "ASDF0">
; registering #<SYSTEM SB-BSD-SOCKETS {24610971}> as SB-BSD-SOCKETS
; loading system definition from
; C:\Program Files\Steel Bank Common Lisp\1.0.22\sb-posix\sb-posix.asd into
; #<PACKAGE "ASDF0">
; registering #<SYSTEM SB-POSIX {23B80079}> as SB-POSIX
; registering #<SYSTEM SB-POSIX-TESTS {23CB6341}> as SB-POSIX-TESTS

debugger invoked on a SB-INT:SIMPLE-READER-PACKAGE-ERROR:
SB-INT:SIMPLE-READER-PACKAGE-ERROR at 89 (line 3, column 47) on #<SB-SYS:FD-ST
REAM for "file C:\\Users\\Andre\\.sbclrc" {23B4E089}>:
The symbol "SYSDEF-SOURCE-DIR-SEARCH" is not external in the ASDF-INSTALL pa
ckage.

Type HELP for debugger help, or (SB-EXT:QUIT) to exit from SBCL.

restarts (invokable by number or by possibly-abbreviated name):
0: [CONTINUE] Use symbol anyway.
1: Ignore error and continue processing userinit file "C:\\Users\\A
ndre\\.sbclrc".
2: [ABORT ] Skip rest of userinit file "C:\\Users\\Andre\\.sbclrc".
3: Skip to toplevel READ/EVAL/PRINT loop.
4: [QUIT ] Quit SBCL (calling #'QUIT, killing the process).

(SB-IMPL::READ-TOKEN
#<SB-SYS:FD-STREAM for "file C:\\Users\\Andre\\.sbclrc" {23B4E089}>
#\a)
0]
Then when I try (asdf-install:install "http://weitz.de/files/cl-ppcre.tar.gz"), the output is :
debugger invoked on a UNBOUND-VARIABLE:
The variable ASDF-INSTALL::*PREFERRED-LOCATION* is unbound.

Type HELP for debugger help, or (SB-EXT:QUIT) to exit from SBCL.

restarts (invokable by number or by possibly-abbreviated name):
0: [ABORT ] Reduce debugger level (to debug level 1).
1: [CONTINUE] Ignore error and continue processing userinit file "C:\\Users\\A
ndre\\.sbclrc".
2: Skip rest of userinit file "C:\\Users\\Andre\\.sbclrc".
3: Skip to toplevel READ/EVAL/PRINT loop.
4: [QUIT ] Quit SBCL (calling #'QUIT, killing the process).

(ASDF-INSTALL:INSTALL "http://weitz.de/files/cl-ppcre.tar.gz")[:EXTERNAL]
0[2]]
I think somehow I make mistake(s). Any hints ?

phil
Posts: 27
Joined: Wed Aug 13, 2008 1:23 pm
Contact:

Re: How to use ASDF in SBCL 1.0.22 (Vista) ?

Post by phil » Sat Nov 15, 2008 4:48 am

I don't know if anything has changed in more recent versions of SBCL or if things differ with Vista over XP but I posted an answer to a similar question here before:

viewtopic.php?f=2&t=103#p691

I don't use asdf-install myself as with this method all you need to do is download the tarball of the libraries you want and un-archive them in to your 'systems' folder and they're ready for use.

I believe some people are using asdf-install on Windows though so if you do want to use it, possibly someone else can give you some tips on that...

Post Reply