Clarified first-time install instructions

Just tried to clarify a few things that confused me as a newbie.  When I actually clicked on the link to use the package manager, it says that sometimes the packaged versions can be old.  I thought that information was helpful, so I added it here.  Also, many projects are best installed by cloning the git repo.  I went down that path next and was left wondering why the 'master' branch wasn't working, so I clarified that you want to download the lein script from the *stable* branch.  Finally, the wording about the lein script bootstrapping itself and taking longer to run was all correct, but I didn't immediately connect the dots that "bootstrapping" meant that the only thing I had to do was to download the script from the right branch and run it.  So I changed "bootstrap" to "installs itself on the first run."
This commit is contained in:
Glen K. Peterson 2014-07-19 18:52:50 -04:00
parent 2cfca444fe
commit 22acac6b1b

View file

@ -15,17 +15,18 @@ Leiningen is for automating Clojure projects without setting your hair on fire.
If your preferred If your preferred
[package manager](https://github.com/technomancy/leiningen/wiki/Packaging) [package manager](https://github.com/technomancy/leiningen/wiki/Packaging)
has a relatively recent version of Leiningen, try that first. offers a recent version of Leiningen, try that first. Many package managers still
Otherwise you can install by hand: include version 1.x, which is rather outdated, so you may be better off installing manually.
Leiningen bootstraps itself using the `lein` shell script; there is no Leiningen installs itself on the first run of the `lein` shell script; there is no
separate install script. It handles installing its own dependencies, separate install script. Follow these instructions to install Leiningen manually:
which means the first run will take longer.
1. Make sure you have a Java JDK version 6 or later. 1. Make sure you have a Java JDK version 6 or later.
2. [Download the script](https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein). 2. [Download the `lein` script from the `stable` branch](https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein)
of this project.
3. Place it on your `$PATH`. (`~/bin` is a good choice if it is on your path.) 3. Place it on your `$PATH`. (`~/bin` is a good choice if it is on your path.)
4. Set it to be executable. (`chmod 755 ~/bin/lein`) 4. Set it to be executable. (`chmod 755 ~/bin/lein`)
5. Run it.
### Windows ### Windows