Grab the latest source from Git and build with Ant.
git clone git://github.com/weavejester/compojure.git
Now you've got to add Compojure into your classpath. I use Emacs and Slime so I edited my
.emacsfile based on some suggestions from IRC and got (in addition to the usual)
(setq swank-clojure-jar-path (concat clj-root "clojure/trunk/clojure.jar")))
(setq swank-clojure-extra-classpaths (directory-files "~/lisp/clj/" t ".jar$"))
~/lisp/cljcontains all my JARs (well symlinks anyway).
After this, I wasted (well wasted probably isn't true, I got some new knowledge) precious minutes of my life wondering why I couldn't get anything working, but on the plus side I found some functions that helped:
;; big list of name spaces, check that you've got Compojure on here!
user> (System/getProperty "java.class.path")
;; big class path list, make sure you have Compojure + all the dependent JARs
Then, I got a bit lost because I'd mismatched versions of compojure.jar and clojure.ar! Rather than using the version of Clojure that came with Compojure, I was using the head revision - bad idea! Use a consistent set of JARs that come from the git repository.
And now I'm able to compile the examples from the Wikibook and all is well.
I also decided to finally by the Programming Clojure book, now all I need is a decent e-book reader!