Skip to content

Troubleshooting a Leiningen Installation

marick edited this page Oct 19, 2012 · 1 revision

Here are some more details for Macs and Linux machines:

In a terminal or shell window, type mkdir ~/bin. That makes a folder in which you'll put Leiningen.

Next, download Leiningen like this:

curl -k https://raw.github.com/technomancy/leiningen/preview/bin/lein > bin/lein

(Alternately, you can download it through your web browser or copy-and-paste the contents of the URL shown above.)

You need to tell the system the new file is a program, not just a plain file, so do this:

chmod a+x bin/lein

Finally, you need to tell the system that there's a new place to find programs. Using your favorite editor, create a file called .profile in your home (default) folder, and put the following line in it. (If the file already exists, put the line at its end.)

export PATH=${PATH}:${HOME}/bin

You'll have to start a new terminal or shell for the changes to take effect.

Clone this wiki locally