Install Clojure

Establish a Clojure environment by installing the following:

  • rlwrap, a read line tool for an interactive command line
  • Clojure CLI tools (Leiningen and Boot should also work)
  • clj-new to create projects

Clojure CLI tools

Install the rlwrap package to add readline support for the clj command line.

Use the Linux script installer from

sudo apt install curl rlwrap

curl -O
chmod +x
sudo ./

The installation creates /usr/local/bin/clj, /usr/local/bin/clojure, and /usr/local/lib/clojure

Use Homebrew on Linux or Windows with WSL

Install the command line tools with brew from the clojure/tools tap:

brew install clojure/tools/clojure

An early release version of clj on Windows is available.

Install clj-new

Save the practicalli/deps-edn-examples deps.edn file to ~/.clojure/deps.edn

Or edit ~/.clojure/deps.edn and add an alias called new that runs the clj-new project.

  {:extra-deps {seancorfield/clj-new {:mvn/version "0.8.6"}}
   :main-opts  ["-m" "clj-new.create"]}

results matching ""

    No results matching ""