Easy setup for Clojure on Mac OS X Leopard

24 08 2009

Clojure definitely is one of the hottest new programming languages around and just recently hit a very important milestone. Setting up a nice Clojure development environment on OS X still can be a bit of a pain though, which can be seen by the number of HOWTOs and installation notes floating around on the web. I therefore decided to expand one of those into ClojureX, which I believe is the easiest way to get up to speed with Clojure development on Leopard.

ClojureX can


  • download and build the source code for Clojure, clojure-contrib and JLine (a readline like library for Java)
  • download editor support packages for TextMate and Emacs
  • create a symlink for the Clojure startup script in /usr/local/bin
  • install support for TextMate via the clojure-tmbundle
  • configure Emacs to use clojure-mode, Slime and swank-clojure
  • keep your Clojure installation up to date via a simple “git submodule update && ant”

I hope this will come in handy for other people interested in trying out Clojure on Mac OS X, if you have any feedback please post it in the comment section.



Trackbacks


25 08 2009
PingBack
Weblog: topsy.com
Tracked: Aug 25, 15:24

Comments

Display comments as (Linear | Threaded)
10 10 2009
#1 icey (Reply)

Hrm, it mostly works, except slime doesn’t seem to be wired up after calling ./configure_emacs (everything else is there though)

10 10 2009
#1.1 citizen428 (Reply)

Thanks for the feedback! I’m surprised emacs didn’t get configured for you, because I used ClojureX to set up my own Clojure dev environment…

10 10 2009
#1.1.1 citizen428 (Reply)

Ok, I see what you mean now. M-x slime stopped working in the last month or so (I haven’t had much time for Clojure). I’ll look into that.

10 10 2009
#1.2 citizen428 (Reply)

Ok, it’s fixed now, the directory layout of swank-clojure got changed around a bit, so configure_emacs created a non-working ~/.emacs. Thanks for the report again! BTW: if you encounter any other problems, please use the issue tracker at GitHub.

19 12 2009
#2 prism345 (Reply)

After trying for several hours to install clojure mode for emacs, I finally found your project. It works out of the box (OK, I had to remove old .swank-clojure-directory ;-)).
Thank you and your friends for ClojureX.

18 02 2010
#3 Alpinweis (Reply)

I am getting a non working .emacs – in the new swank-clojure the folder swank-clojure/src/emacs that does not exist, so (require ‘swank-clojure-autoload) fails

18 02 2010
#3.1 citizen428 (Reply)

Yeah, unfortunately neither Scott nor I have the time to keep up with upstream changes right now, so ClojureX is semi-broken at the moment :-/


Add Comment


Enclosing asterisks marks text as bold (*word*), underscore are made via _word_.
Textile-formatting allowed

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA 1CAPTCHA 2CAPTCHA 3CAPTCHA 4CAPTCHA 5


Standard emoticons like :-) and ;-) are converted to images.