Skip to content

Commit

Permalink
Recommend manual install in /usr/local/bin
Browse files Browse the repository at this point in the history
  • Loading branch information
technomancy committed Aug 5, 2022
1 parent 85dca22 commit 0d5eceb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@ and git remotes.

If your preferred
[package manager](https://codeberg.org/leiningen/leiningen/wiki/Packaging)
offers a recent version of Leiningen, try that first as long as it has version 2.x.
offers a recent version of Leiningen, try that first.

Leiningen installs itself on the first run of the `lein` shell script; there is no
separate install script. Follow these instructions to install Leiningen manually:

1. Make sure you have Java installed; OpenJDK is recommended
1. Make sure you have Java installed; [OpenJDK](https://adoptium.net) is recommended
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.)
4. Set it to be executable. (`chmod +x ~/bin/lein`)
of this project
3. Place it on your `$PATH` (`/usr/local/bin` for example)
4. Set it to be executable. (`sudo chmod +x /usr/local/bin/lein`)
5. Run it.

Windows users can use the above script in the Linux subsystem or try
Expand Down
16 changes: 9 additions & 7 deletions web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,20 +74,22 @@ <h6>for automating Clojure projects without setting your hair on fire</h6>

<div class="one-third column"><h3 class="offset-by-one">Install</h3></div>
<div class="two-thirds column">
<p>Leiningen and Clojure require Java; ideally OpenJDK.</p>
<p>First check
your <a href="https://codeberg.org/leiningen/leiningen/wiki/Packaging">package
manager</a> to see whether it includes Leiningen. If not, don't
worry; a manual install is easy.</p>

<p>Leiningen and Clojure require Java; ideally
<a href="https://adoptium.net">OpenJDK</a>.</p>
<a name="install"></a>
<ol>
<li>Download the <a href="https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein"><kbd>lein</kbd>
script</a> (or on
Windows <a href="https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein.bat"><kbd>lein.bat</kbd></a>)</li>
<li>Place it on your <tt>$PATH</tt> where your shell can find it (eg. <tt>~/bin</tt>)</li>
<li>Set it to be executable (<kbd>chmod a+x ~/bin/lein</kbd>)</li>
<li>Place it on your <tt>$PATH</tt> where your shell can find it (eg. <tt>/usr/local/bin/</tt>)</li>
<li>Set it to be executable (<kbd>sudo chmod a+x /usr/local/bin/lein</kbd>)</li>
<li>Run it (<kbd>lein</kbd>) and it will download the self-install package</li>
</ol>

<p>You can check
your <a href="https://codeberg.org/leiningen/leiningen/wiki/Packaging">package
manager</a> as well depending on your operating system.</p>
</div>

<div class="sixteen columns"><hr /></div>
Expand Down

0 comments on commit 0d5eceb

Please sign in to comment.