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 Clojure.org - Getting Started

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

curl -O https://download.clojure.org/install/linux-install-1.10.2.774.sh
chmod +x linux-install-1.10.2.774.sh
sudo ./linux-install-1.10.2.774.sh

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 Clojure.org 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 scoop.sh, 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 get.scoop.sh | 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 https://github.com/littleli/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 1.10.1.697.


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 ""