Page 1 of 1

Error loading Slime

PostPosted: Thu Oct 06, 2011 12:19 am
by soichi
my environment:
MacOSX SnowLeopard
CocoaEmacs 23.2
SBCL 1.0.51.0-a546163
Slime latest

I am trying to use sbcl on Emacs with Slime. The installation seems fine and sbcl works on the terminal.
But when I launch slime on Emacs by typing M-x slime, it produces an error,

apply: Searching for program: no such file or directory, sbcl

I have searched the web and it seems that many people had the same problem. Although I have checked the settings such as syntax, the problem still occurs.

Could anyone tell me why this happens?


;;in .emacs file

(setq inferior-lisp-program "/usr/local/bin/sbcl")
(setq slime-lisp-implementations
'((sbcl ("sbcl") :coding-system utf-8-unix)
(cmucl ("cmucl") :coding-system iso-latin-1-unix)))
(add-to-list 'load-path "~/.emacs.d/slime")
(add-hook 'lisp-mode-hook (lambda ()
(slime-mode t)
(show-paren-mode)))
(require 'slime)
(slime-setup)
(global-set-key "\C-cs" 'slime-selector)

Re: Error loading Slime

PostPosted: Sat Oct 08, 2011 4:28 pm
by Kompottkin
Code: Select all
(setq slime-lisp-implementations
'((sbcl ("sbcl") :coding-system utf-8-unix)
(cmucl ("cmucl") :coding-system iso-latin-1-unix)))


Assuming that SBCL is installed in /usr/local, try replacing this with

Code: Select all
(setq slime-lisp-implementations
      '((sbcl ("/usr/local/bin/sbcl") :coding-system utf-8-unix)
        (cmucl ("/usr/local/bin/cmucl") :coding-system iso-latin-1-unix)))