# sorry, I didn't reply to the list<br><br>Starting emacs from shell does work.<br><br>I installed quack, it looks like it manage scheme command. There's probably a way to customize it.<br><br>./configure --enable-mac64 : for snow leopard in 64 bit<br>
--enable-xonx : to make a unix like installation (need for --prefix)<br>
<br>Thank you<br><br><br><div class="gmail_quote">2011/7/14 John Clements <span dir="ltr"><<a href="mailto:clements@brinckerhoff.org">clements@brinckerhoff.org</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><br>
On Jul 13, 2011, at 8:19 PM, Lavoie Francis wrote:<br>
<br>
> Hi,<br>
><br>
> I want to learn racket. I already started learning lisp from Land of Lisp, Practical Common Lisp and a bit of Clojure.<br>
><br>
> 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.<br>
><br>
> 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 (<a href="http://olabini.com/blog/2009/12/path-problem-with-emacs-on-mac-os-x/" target="_blank">http://olabini.com/blog/2009/12/path-problem-with-emacs-on-mac-os-x/</a>, <a href="http://www.emacswiki.org/emacs/EmacsApp#toc2" target="_blank">http://www.emacswiki.org/emacs/EmacsApp#toc2</a>) without luck, emacs can't find racket.<br>
<br>
</div>This one I can shed some light on. If you start emacs (or any other program) from a shell (running in a terminal window), it inherits that shell's PATH. If you start it from the finder, though, it doesn't. One way to fix this is to start emacs from a terminal window. Another is to try a hack such as the one you describe. Another one is to explicitly specify the path in the command that runs racket.<br>
<div class="im"><br>
><br>
> So I tried to compile racket from source. I used the unix build to install racket into the standard path.<br>
>> ./configure --enable-mac64 --enable-xonx --prefix=/usr/local<br>
> 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.<br>
><br>
> But I still have some issues. I cannot load gracket, I get an error because it is unable to locate cairo.<br>
> ffi-lib: couldn't open "libcairo.2.dylib" (dlopen(libcairo.2.dylib, 10): image not found)<br>
<br>
</div>It certainly looks to me like the problem you're seeing is a result of the incompatible flags. Can you tell me why you want --enable-xonx? I run racket every day on an OS X box without issue. Is it actually important that it run under X?<br>
<font color="#888888"><br>
John Clements<br>
<br>
</font></blockquote></div><br>