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
Run Windows Powershell as administrator (right-click)
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