Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
clj on Windows
First, download the latest version of the installer:
When you run the installer, you will be prompted with several possible install locations:
PS Y:\Downloads> .\win-install-184.108.40.2062.ps1 Downloading Clojure tools WARNING: Clojure will install as a module in your PowerShell module path. Possible install locations: 1) \\Drive\Home\Documents\WindowsPowerShell\Modules 2) C:\Program Files\WindowsPowerShell\Modules 3) C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\ Enter number of preferred install location: 1 Cleaning up existing install Installing PowerShell module Removing download Clojure now installed. Use "clj -h" for help.
When choosing which location to install consider these tradeoffs:
- #1 can be installed without admin privileges but will create a directory in Documents
- #2 and 3 should probably be run only if you have admin privileges
Install fails due to permission errors
You can use the following command to allow execution of external scripts for the current user:
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
Please make sure you understand the ramifications of this before running.
Install fails in zip expansion
This seems to happen sometimes with an error like:
New-Object : Exception calling ".ctor" with "3" argument(s): "End of Central Directory record could not be found."
This might be a corrupted download (need better info on this) - try running it again.
Quoted strings in -Sdeps argument not handled correctly
If your dependencies create a long classpath (~8k characters), you will exceed the Windows command-line length limit. The best option is probably to reduce the path to your local Maven repository, which is typically at $HOME/.m2/repository.
The local repository location to use can be overridden by creating or modifying the file at $HOME/.clojure/deps.edn:
The local-repo directory is included in the path to every downloaded dependency so shortening that can have a significant impact on classpath line length.
We seek your feedback on the best way to integrate the Windows install into your development environment. What's important to you? Self-executing installer? Chocolatey package? Powershell module? Please let us know.