Running Clojure on Slackware

To run Clojure on Slackware you’ll want a few things:

  1. JDK (use the Slackbuild from /extra to build the latest version yourself)
  2. Leiningen (available from SlackBuilds.org)
  3. Create a command line wrapper to execute Clojure scripts (some examples for learning Clojure expect you to set this up, but don’t really tell you how to).

Assuming you’ve installed Leiningen (in my case, 1.6.1.1), I’ve created ~/bin/clj with the following to do this:

#!/bin/sh
java -cp ~/.m2/repository/org/clojure/clojure/1.2.1/clojure-1.2.1.jar clojure.main "$@"

Posted on January 4, 2014 at 1:59 pm by Carlos Corbacho · Permalink
In: Clojure, Linux, Slackware