Setting Up
-
Download Leiningen Script.
cd & cd Downloads
wget https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein
-
Relocating Leiningen Script.
-
System Wide Installation (need Admin Privileges)
sudo su -c "chown root:root ./lein && chmod a+x ./lein"
sudo su -c "mv ./lein /usr/local/bin/"
-
Local Installation
chmod a+x ./lein
mkdir $HOME/bin
mv ./lein $HOME/bin
Test installation:
which lein
If No Output then:
echo "export PATH=$PATH:$HOME/bin" > $HOME/.bashrc
source $HOME/.bashrc
-
Contents