Thursday, August 12, 2010

Tips for SBCL MacPorts if running sbcl complains about missing sbcl.core

If you see one of these errors when launching MacPorts sbcl from Terminal,

- contains the words "sbcl.core"
- version is wrong

first, edit ~/.MacOSX/environment.plist, even if it doesn't exist. Mine is:

{
"SBCL_HOME" = "/opt/local/var/macports/software/sbcl/1.0.39_0+html+threads/opt/local/lib/sbcl";
}

Second, reboot. If sbcl still does not work, or is the wrong version, then

sudo rm -f /opt/local/bin/sbcl
sudo port uninstall sbcl
sudo port install sbcl +threads

Threading support may cause issues, but I'd rather have access to them than not.

Confirm that echo $SBCL_HOME returns the path in quotes above, specifically without a trailing /.

As a bonus tip, MCLIDE can work without run-sbcl.sh, you just gotta remove "sh " from ~/Library/Preferences/com.in-progress.mclide/lisp-implementations-4. Here's my sbcl section:

#|(|SBCL| ("sh \"$exec\" --load \"$loader\" --eval \"$initform\"")
:init NIL
:default "run-sbcl.sh")|#

(|SBCL| ("\"$exec\" --load \"$loader\" --eval \"$initform\"")
:init NIL
:default "sbcl")

0 comments:

Post a Comment