Skip to content

Instantly share code, notes, and snippets.

@wdhowe
Last active February 3, 2024 21:19
Show Gist options
  • Save wdhowe/e6fc5e372b85ad8a25fdebf446b1a3e6 to your computer and use it in GitHub Desktop.
Save wdhowe/e6fc5e372b85ad8a25fdebf446b1a3e6 to your computer and use it in GitHub Desktop.
Install the Clojure Programming Language

Install Clojure

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment