Installing leiningen 2 on Ubuntu

Zuriar picture Zuriar · Sep 14, 2014 · Viewed 16.7k times · Source

I have followed the instructions here:

leiningen.org

To install from the lein script. I now have:

~/.lein/self-installs/leiningen-2.4.3-standalone.jar

How do I now run leiningen? The instructions are not clear.

Answer

ChillarAnand picture ChillarAnand · Apr 29, 2016

On ubuntu, its quite easy. Download executable file, make it executable and place it in system path.

$ wget https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein
$ chmod +x lein
$ sudo mv lein /usr/local/bin

You can also move it any directory which is in system path.

$ lein -v
Leiningen 2.6.1 on Java 1.8.0_77 Java HotSpot(TM) 64-Bit Server VM