slimeが起動出来なかったことのメモ

VirtualBoxDebianを使っていて、slimeをSynapticでアンインストールとかしたり、slimeの公式サイトからダウンロードしたものを使おうとか色々してたらslimeが起動できなくなった。エラーメッセージはこんなのが出てきた。

 

(progn (load "/usr/share/common-lisp/source/slime/swank-loader.lisp" :verbose t)
(funcall (read-from-string "swank-loader:init"))
(funcall (read-from-string "swank:start-server")
"/tmp/slime.2428" :coding-system "utf-8-unix"))

This is SBCL 1.0.45.0.debian, 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.
*
; loading #P"/usr/share/common-lisp/source/slime/swank-loader.lisp"
; loading #P"/home/user/.cache/common-lisp/sbcl-1.0.45.0.debian-linux-
amd64/usr/share/common-lisp/source/slime/swank/fasl/sbcl-1.0.45.0.debian
-linux-x86-64/swank-backend.fasl"
;;
;; Error while loading /home/user/.cache/common-lisp/sbcl-1.0.45.0.
debian-linux-amd64/usr/share/common-lisp/source/slime/swank/fasl/sbcl-1.
0.45.0.debian-linux-x86-64/swank-backend.fasl:
;; end of file on #<SB-SYS:FD-STREAM
;; for "file /home/user/.cache/common-lisp/sbcl-1.0.
45.0.debian-linux-amd64/usr/share/common-lisp/source/slime/swank/fasl/
sbcl-1.0.45.0.debian-linux-x86-64/swank-backend.fasl"
;; {100389CE71}>
;; Aborting.
;; *

どうしたもんかと悩んで3日(というのは嘘で忘れてたんだけど)

 

ふとエラーを見てみると、.cacheというフォルダのデータを読み出そうとしてるみたいだった。 そういえば.cacheの中身って、キャッシュファイルやから消しても大丈夫じゃないかなと思って~/.cache/common-lisp/の中の、sbcl-1.0.45.0.debian-linux-amd64ディレクトリを消したら当たりで、ちゃんとslimeがデータを読み出してくれて起動できた。

 

バージョンの違うslimeを別のディレクトリから起動させる場合、キャッシュを手動で消さないといけない場合があるんじゃないかと思った今日この頃。