How to Install Clojure, Leiningen, & Light Table on Manjaro Linux

Getting a Clojure environment up and running on any Arch Linux based system (like Manjaro) is easy as pie! Everything is in either the official repo’s or the AUR — and up to date, unlike the old-ass shit you’re likely to find in most distros.

Haskell is a bit more tedius, and I’ve switched to Fedora for my Haskell learnin’, which has proven to be a great fit. But in Fedora, the situation is reversed for Clojure. Thus, I’m currently sticking with Manjaro for Clojure stuff.

First, grab the Clojure package, which will pull in the dependencies you’ll need for Leiningen and Lighttable.

You’ll be using your “AUR Helper” — you probably are using Yaourt because Manjaro ships with it, but I use Pacaur. Simply replace “pacaur” with “yaourt” below if that’s what you use.

1

2

pacaur-Sleiningen leiningen-completions

I use Emacs for most things, but for Clojure, Light Table is very nice. To get the Light Table editor going you need to (for now) also add a little tweak because it’s built on a slightly older version of Node Webkit.

No worries though! The AUR is all over it. Just install this:

1

2

pacaur-Slibudev.so.0

Which creates a simlink from /usr/lib/libudev.so.0 to /usr/lib/libudev.so which you can read more about HERE — while that article shows you how to do it manually, you won’t have to if you install the above package, it does it for you.