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)
Error loading Slime
-
- Posts: 94
- Joined: Mon Jul 21, 2008 7:26 am
- Location: München, Germany
- Contact:
Re: Error loading Slime
Assuming that SBCL is installed in /usr/local, try replacing this withCode: Select all
(setq slime-lisp-implementations '((sbcl ("sbcl") :coding-system utf-8-unix) (cmucl ("cmucl") :coding-system iso-latin-1-unix)))
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)))