Official site: https://www.clojure.org/index
-
Install Clojure dependencies. (Ubuntu)
sudo apt install openjdk-11-jdk rlwrap java -version
-
Download clojure installer.
clojure_version="1.11.1.1149" curl -O https://download.clojure.org/install/linux-install-${clojure_version}.sh
-
Make executable and run.
chmod +x ./linux-install-${clojure_version}.sh sudo ./linux-install-${clojure_version}.sh
-
Run the Clojure REPL and print hello (ctrl+d to quit).
clj user=> (println "Hello!")
-
Optionally, setup one of the Clojure project tools:
- Clojure Tools - Newer/more minimal, officially supported by the Clojure team.
- Lein - Traditional/batteries included project automation from the community.