[racket] Emacs, racket and OS X issues

From: Lavoie Francis (lav.francis at gmail.com)
Date: Wed Jul 13 23:19:02 EDT 2011


I want to learn racket. I already started learning lisp from Land of Lisp, Practical Common Lisp and a bit of Clojure.

For my everyday job (python, javascript) I use emacs, to learn lisp and clojure I used emacs with slime. I would like to do the same thing with racket but I ran into trouble, emacs can't find racket.

First, it looks like emacs for OS X does not use the users' own $PATH, but the one of the system. I tried some hack I found on google (http://olabini.com/blog/2009/12/path-problem-with-emacs-on-mac-os-x/, http://www.emacswiki.org/emacs/EmacsApp#toc2) without luck, emacs can't find racket.

So I tried to compile racket from source. I used the unix build to install racket into the standard path.
> ./configure --enable-mac64 --enable-xonx --prefix=/usr/local
It produced the following error message: --enable-mac64 and --enable-xonx are not valid option; but everything runs well and works! Great I can start to create some stuff.

But I still have some issues. I cannot load gracket, I get an error because it is unable to locate cairo.
ffi-lib: couldn't open "libcairo.2.dylib" (dlopen(libcairo.2.dylib, 10): image not found)

Can someone give me a clue on how to make my setup any better?


Posted on the users mailing list.