info@beaconhill.com | 914-834-2820

Installing Clojure on Ubuntu

I already had Java and Ant installed so I followed with:

Install Git

$ sudo apt-get install git-core

Install Clojure

$ cd /opt
    $ sudo git clone git://github.com/richhickey/clojure.git

Build Clojure

$ cd /opt/clojure
    $ ant

Install clojure-contrib

clojure-contrib is the clojure language extension library.

$ cd /opt
    $ git clone git://github.com/richhickey/clojure-contrib.git

Build clojure-contrib

$ cd clojure-contrib
    $ ant -Dclojure-jar=../clojure/clojure.jar

Updating Clojure and clojure-contrib

$ cd /opt/clojure
    $ git pull
    $ ant

$ cd /opt/clojure-contrib
    $ git pull
    $ ant -Dclojure.jar=../clojure/clojure.jar