Skip to content

Instantly share code, notes, and snippets.

@LukeAlbarracin
Last active January 19, 2022 00:43
Show Gist options
  • Save LukeAlbarracin/5c366a3e9be836bf63570015a292a0a9 to your computer and use it in GitHub Desktop.
Save LukeAlbarracin/5c366a3e9be836bf63570015a292a0a9 to your computer and use it in GitHub Desktop.
Developer Automation Tool for Clojure

Automation approach to install Leiningen on macOS without admin (sudo) access

  1. Make a new directory called "bin" in the home (~) folder

mkdir ~/bin

  1. Download the self-install script for Leiningen

curl https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein -o ~/bin/lein

  1. Create your .bashrc file if not already created

touch ~/.bashrc

  1. Edit the path in your favorite editor to

PATH=$PATH:~/bin

  1. Confirm the changed path using the command

source ~/.bashrc

  1. Allow lein to be executable

chmod +x ~/bin/lein

  1. Test out the newly installed Leiningen with

lein new app hello-world

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment