Installing Leiningen for Clojure on Linux Mint 12

Im a clojure beginner.I took the following steps listed at http://www.unexpected-vortices.com/clojure/brief-beginners-guide/development-env.html to configure Leiningen on my Linux Mint 12 machine.

cd ~/bin
wget https://raw.github.com/technomancy/leiningen/stable/bin/lein
chmod +x lein
lein self-install

But now, when I run the following command:

lein new foobar

I get

The program 'lein' is currently not installed.  You can install it by typing:
sudo apt-get install leiningen

I see the leiningen-1.7.1-standalone.jar file in ~ / .lein / self-installs. Why am I being asked to install the lane again using the package manager, although I used the self-tuning method?

Please help. Thank you.

+5
source share
1 answer

It seems your directory is ~/binnot on yours PATH.

In your .bashrc(or .bash_profile) you need to add something like:

export PATH=$HOME/bin:$PATH
+6
source

All Articles