Skip to content

Instantly share code, notes, and snippets.

@kitallis
Last active March 12, 2021 10:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kitallis/f3aed9f597744a126f548f4141fa484d to your computer and use it in GitHub Desktop.
Save kitallis/f3aed9f597744a126f548f4141fa484d to your computer and use it in GitHub Desktop.
clj on windows

Setting up clojure on windows for beginners.

I tried 3 ways:

  • Install a windows linux sub-system - this was too hard to setup
  • Setting all deps from ground-up (git, java, curl etc.) - this was too hard to setup
  • Using scoop - this is the simplest way, described below

Note: this has only been tested on Windows 10

powershell

Run Windows Powershell as administrator (right-click)

scoop package manager

Install by pasting this on powershell:

Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh')

Then run the following scoop commands from powershell:

scoop install git
scoop bucket add java
scoop bucket add scoop-clojure https://github.com/littleli/scoop-clojure
scoop install adoptopenjdk-lts-hotspot
scoop install clojure
scoop update clojure

Then install the extras deps for lein etc.:

scoop bucket add extras
scoop install leiningen

Install lein

lein self-install

editor

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