- Make a new directory called "bin" in the home (~) folder
mkdir ~/bin
- Download the self-install script for Leiningen
curl https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein -o ~/bin/lein
- Create your .bashrc file if not already created
touch ~/.bashrc
- Edit the path in your favorite editor to
PATH=$PATH:~/bin
- Confirm the changed path using the command
source ~/.bashrc
- Allow lein to be executable
chmod +x ~/bin/lein
- Test out the newly installed Leiningen with
lein new app hello-world