Clojure installer and CLI tools
Clojure provides command line tools that can be used to start a Clojure repl, use Clojure and Java libraries, and start Clojure programs.
Installation on Mac via
Install the command line tools with brew:
brew install clojure
If you’ve already installed, you can upgrade to the latest release with:
brew upgrade clojure
Installation on Linux
Ensure that the following dependencies are installed: bash, curl, rlwrap, and Java.
Use the linux-install script to download and run the install, which will create /usr/local/bin/clj, /usr/local/bin/clojure, and /usr/local/lib/clojure:
curl -O https://download.clojure.org/install/linux-install-188.8.131.522.sh chmod +x linux-install-184.108.40.2062.sh sudo ./linux-install-220.127.116.112.sh
Installation on Windows
An early release version of clj on Windows is available at [clj on Windows](https://github.com/clojure/tools.deps.alpha/wiki/clj-on-Windows). Please provide feedback at https://dev.clojure.org/jira/browse/TDEPS.
Other ways to run Clojure
Download and build Clojure from source (requires Git, Java, and Maven):
git clone https://github.com/clojure/clojure.git cd clojure mvn -Plocal -Dmaven.test.skip=true package
Then start the REPL with the local jar:
java -jar clojure.jar
Try Clojure online
repl.it provides a browser-based Clojure repl for interactive exploration.