Quite recently I installed Leiningen following the instructions from the homepage:
- Download the lein
script (or on
Windows lein.bat)- Place it on your $PATH where your shell can find it (eg. ~/bin)
- Set it to be executable (chmod a+x ~/bin/lein)
Well, actually not.
Installing using sudo:
- Download the lein script (or on Windows lein.bat)
- sudo mv lein.txt /bin/lein (changes the file name and moves it to ~/bin) or sudo mv lein /bin *
- Set it to be executable: sudo chmod a+x ~/bin/lein
- Execute lein, $lein **
* If you save the lein script without a file extension, use the second command. Chrome on Ubuntu would only save the file with an extension.
** When you execute lein, leiningen-(version)-standalone.jar will be installed in your home directory under .lein.
You can always type: lein -h to see your options or check this lein 2.3.4-cheatsheet.pdf.
Alternatively, use a package manager (e.g. homebrew [1] on Mac OSX).
[1] http://brew.sh/
Comment by pmonks — January 23, 2014 @ 1:50 pm