Closure on Windows with Linux Subsystem (WSL)

So I am planning to do some work with friend and he is mad into Closure so I'm going to give it a go.

First, I'll need to get it working. I've mostly been using node at home, I don't do much home-brew stuff with java.

Going to work through the Closure - Getting Started docs.

Installation on Linux

  1. Ensure that the following dependencies are installed: bash, curl, rlwrap, and Java.
  2. Use the linux-install script to download and run the install, which will create /usr/local/bin/clj, /usr/local/bin/clojure, and /usr/local/lib/clojure:
curl -O
chmod +x
sudo ./

Lets see how it goes.

  1. Check if bash, curl, rlwrap, and Java are available.

So you can use dpkg -s <package-name> | grep Status to see if a package is installed.

If the package is installed you should see an output similar to Status: install ok installed. If it is not installed you will see dpkg-query: package '<package-name>' is not installed and no information is available

  1. Install rlwrap and Java

After a brief (2 hr) hiatus in package dependency hell with libsystemd0, systemd and libpam-systemd

sudo apt-get install rlwrap

Java is a little more complicated as we need to add the Oracle repositories first. (SO Link)

To add the repositories

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update

To do the install

sudo apt-get install oracle-java8-installer 
sudo apt install oracle-java8-set-default
  1. Run the linux-install script provided by the getting started guide
curl -O
chmod +x
sudo ./
  1. Profit

Run clj to start the clojure repl. When you get the user=> prompt type (println "Hello World") and hit enter.

Clojure 1.9.0
user=> (println "Hello World")
Hello World