Skip to content

Instantly share code, notes, and snippets.

@gzeureka
Created February 13, 2018 01:44
Show Gist options
  • Select an option

  • Save gzeureka/55863bf7aded8ba8fa2b1ae1d885a595 to your computer and use it in GitHub Desktop.

Select an option

Save gzeureka/55863bf7aded8ba8fa2b1ae1d885a595 to your computer and use it in GitHub Desktop.
How to install Leiningen and Clojure in Cloud9 IDE.
  • create a blank c9 workspace (Ubuntu)
  • create bin directory mkdir ~/bin && cd ~/bin
  • download the lein file wget https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein
  • set it to be executable chmod 755 lein
  • tell the JVM where to find your home directory (just type this into the console like the rest) export LEIN_JVM_OPTS="-Duser.home=$HOME"
  • run lein for self-install
  • change into your ~/workspacedirectory
  • initiate your project, for example: lein new app clojure-noob
  • change directory to your project (where the project.clj is located), for example: cd ~/workspaces/clojure-noob
  • run dependencies lein deps
  • lein should now work: lein repl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment