Another Word For It Patrick Durusau on Topic Maps and Semantic Diversity

January 16, 2014

Leiningen Install, The Missing Bits

Filed under: Clojure — Patrick Durusau @ 7:43 pm

Quite recently I installed Leiningen following the instructions from the homepage:

  1. Download the lein
    script
    (or on
    Windows lein.bat)
  2. Place it on your $PATH where your shell can find it (eg. ~/bin)
  3. Set it to be executable (chmod a+x ~/bin/lein)

Well, actually not.

Installing using sudo:

  1. Download the lein script (or on Windows lein.bat)
  2. sudo mv lein.txt /bin/lein (changes the file name and moves it to ~/bin) or sudo mv lein /bin *
  3. Set it to be executable: sudo chmod a+x ~/bin/lein
  4. 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.

1 Comment

  1. 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

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

Powered by WordPress