Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing leiningen 2 on Ubuntu

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.

like image 551
Zuriar Avatar asked Sep 14 '14 21:09

Zuriar


2 Answers

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
like image 66
Pandikunta Anand Reddy Avatar answered Oct 20 '22 05:10

Pandikunta Anand Reddy


Posting this as it might help other users.

Follow the install instructions.

Please make sure the leiningen script that the install instructions is on your executable PATH.

The script is the entry point to leiningen commands, so it's still needed after the downloads are complete.

It takes care of setting up environmental variables, paths and everything else required to run leiningen, so you can use

lein <command>

instead of

java -cp <whatever>:~/.lein/self-installs/leiningen-2.4.3-standalone.jar ... clojure.main -m leiningen.core.main <command>
like image 29
soulcheck Avatar answered Oct 20 '22 04:10

soulcheck