SLIME not loading from Emacs
 I've recently updated SLIME from package-list-packages in Emacs.  However, when I try to run it using Mx slime , I get this:  
(progn (load "/home/koz/.emacs.d/elpa/slime-20140913.730/swank-loader.lisp" :verbose t) (funcall (read-from-string "swank-loader:init")) (funcall (read-from-string "swank:start-server") "/tmp/slime.3081"))
* 
; loading #P"/home/koz/.emacs.d/elpa/slime-20140913.730/swank-loader.lisp"
;; 
;; Error while compiling /home/koz/.emacs.d/elpa/slime-20140913.730/swank/backend.lisp:
;;   Failed to find the TRUENAME of /home/koz/.emacs.d/elpa/slime-20140913.730/swank/backend.lisp:
;;     No such file or directory
;; Aborting.
;; * 
I still have a REPL afterwards, but I think this is very strange, and I'd like to know what's going on and why.
 This is caused by losing the swank sub-directory in your slime folder.  To fix it, you can simple download slime from github and copy the folder swank to your slime installed path, for your situation is /home/koz/.emacs.d/elpa/slime-20140913.730/ then restart your slime.  it will be load correctly.  
On Freenode's #lisp channel, I talked to one person who agreed that the current version of SLIME in MELPA (20140913.730) is broken. On my system, the whole $HOME/.emacs.d/elpa/slime-20140913.730/swank/ directory is missing, which presumably is why it can't compile Lisp files found therein.
Other members of the channel suggested installing SLIME from Quicklisp; I did that and it worked, although the SLIME version there is slightly older (dated 2014-08-01). Here is what I did (I didn't already have Quicklisp installed); adjust to match your system and preferences:
Mx list-packages , go to the line for SLIME, press d, then press x).  sbcl .  (load "~/Downloads/quicklisp.lisp") .  (quicklisp-quickstart:install) ;  optionally, if you don't want it to go in ~/quicklisp, add :path "~/.quicklisp/" (substituting whatever directory you actually do want it installed in).  (ql:quickload "swank") .  (ql:add-to-init-file) to patch your .sbclrc to always load Quicklisp in SBCL.  "~/quicklisp/dists/quicklisp/software/slime-2.9" (adjusted for whatever path you installed Quicklisp in).  Mx slime should work.  上一篇: 逗号不起作用
下一篇: SLIME不从Emacs加载
