Install Clojure Clojure is a library meaning any version of Clojure can easily be used with a project.

The Clojure CLI tool will download the Clojure library and provides essential tools for Clojure development.

Use the Linux script installer from - Getting Started

The instructions should be as follows, possibly with a newer version

curl -O
chmod +x
sudo ./

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

Use the Homebrew command with the clojure/tools tap, as defined in the Getting started guide

brew install clojure/tools/clojure

Homebrew on Linux or Windows with WSL

For Windows 10 use Windows Subsystem for Linux and Windows Terminal are recommended if you have administrative privileges and are happy to use a Unix system on the command line.

Alternatively install, a command line installer for windows. Powershell 5 or greater is required. Follow the scoop-clojure getting started guide, summarized here:

Open "Windows PowerShell" and enter the following commands to configure the shell:

iwr -useb | iex
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser -Force

Then in the same PowerShell window, install the Clojure related tools using the following commands:

scoop bucket add extras
scoop bucket add java
scoop bucket add scoop-clojure
scoop install git 7zip pshazz adoptopenjdk-lts-hotspot clojure leiningen clj-kondo vscode coreutils windows-terminal

Check CLI tools version

clojure -Sdescribe confirms that Clojure CLI tools are installed and will show the version of the tool. Use the latest version of Clojure CLI tools, or at least version

Optional: rlwrap readline Install the rlwrap binary to support the clj wrapper, which launches a Clojure REPL with command history.

rlwrap is available with most Linux systems. Look for install instructions by searching for rlwrap in a web browser.

rebel readline provides even more features in the command line REPL.

results matching ""

    No results matching ""