[slime-devel] Can't load sbcl...

Carlos Konstanski ckonstanski at pippiandcarlos.com
Sun May 23 16:20:09 UTC 2010


On 05/23/2010 09:19 AM, Olwe Melwasul wrote:
> First post here. I'm a newbie to all things lisp. Hopefully this is the
> place to ask...
> 
> So I'm on Ubuntu 10.04 and I've successfully installed Clisp and SBCL.
> Clisp was apt-getted; SBCL was installed from latest Linuxx86
> "binaries." Both work in terminals. Clisp actually works with Slime, but
> SBCL not. This is what Slime starting with SBCL gives:
> 
> -------------------
> 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.
> *�
> ; loading #P"/usr/share/common-lisp/source/slime/swank-loader.lisp"
> 
> debugger invoked on a SB-C::INPUT-ERROR-IN-COMPILE-FILE in thread #<THREAD
> �� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �
> �"initial thread" RUNNING
> �� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �
> �{A9F28C9}>:
> ��READ failure in COMPILE-FILE:
> �� �SB-INT:SIMPLE-READER-PACKAGE-ERROR at 5151 (line 128, column 45) on
> #<SB-SYS:FD-STREAM
> �� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �
> �for "file /usr/share/common-lisp/source/slime/swank-loader.lisp"
> �� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �
> �{A9FC3D1}>:
> �� � �package "CLC" not found
> 
> Type HELP for debugger help, or (SB-EXT:QUIT) to exit from SBCL.
> 
> restarts (invokable by number or by possibly-abbreviated name):
> ��0: [ABORT] Exit debugger, returning to top level.
> 
> (SB-C::READ-FOR-COMPILE-FILE
> �#<SB-SYS:FD-STREAM
> �� for "file /usr/share/common-lisp/source/slime/swank-loader.lisp"
> {A9FC3D1}>
> �4663)
> 0]
> -------------------------
> 
> Alas, the limbo between hand-installed and apt-get wizardry therein I am
> no doubt lost. Actually, my Emacs (23.1.1), my Slime (1:20090908-1
> according to Synaptic) and Clisp were all apt-got. Can this be sorted
> out? Or must I blitz my hard drive, install NetBSD, Stump, and
> everything Lisp from source?
> 
> Olwe

Something else occurs to me re: ASDF in SBCL. If you installed SBCL
manually, then you probably don't have a nice /etc/sbclrc file. Here's what
Gentoo does for you when you install SBCL from Portage. Notice how it loads
ASDF:

(setf (logical-pathname-translations "SYS")
    '(("SYS:SRC;**;*.*.*" #p"/usr/lib64/sbcl/src/**/*.*")
      ("SYS:CONTRIB;**;*.*.*" #p"/usr/lib64/sbcl/**/*.*")))

(in-package #:cl-user)

#+(or sbcl ecl allegro) (require :asdf)
#-(or sbcl ecl allegro)
(let ((*compile-print* nil)
      (*compile-verbose* nil)
      #+cmu (ext:*gc-verbose* nil))
  (handler-bind ((warning #'muffle-warning))
    (load #p"/usr/share/common-lisp/source/asdf/asdf.lisp"
          :print nil :verbose nil)))

(push #p"/usr/share/common-lisp/systems/" asdf:*central-registry*)

(let ((*compile-print* nil)
      (*compile-verbose* nil)
      #+cmu (ext:*gc-verbose* nil))
  (handler-bind ((warning #'muffle-warning))
    (asdf:oos 'asdf:load-op :asdf-binary-locations)))
(setf asdf:*centralize-lisp-binaries* t)

Carlos




More information about the slime-devel mailing list