- Install script for Linux & MacOSX
- Install script for Microsoft Windows or use the Linux script from GitBash (recommended).
lein file to somewhere on your operating system path, eg
Now run this script on the command line
The first time you run this script it downloads a Java archive file (JAR) of the latest version of Leiningen. When you run the script again, you have a working Leiningen build tool.
lein once installed will show you a list of available commands.
If you are using Leiningen then there is no specific install for Clojure.
Clojure comes as a library, a JAR file, managed by the build tool Leiningen just like any other dependency.
When you create a project with Leiningen, the configuration is created in a file called
project.clj. Inside this
project.clj is a
dependencies entry where the version of clojure is specified along with any other dependencies. Here is an example of a
project.clj configuration with just Clojure as a dependency
Hint The Clojure library is very small (~3.6Mb) and Leiningen caches it and all other libraries locally in the same folder structure that Maven uses, eg Clojure version 0.1.8 would be cached in