Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does one start programming with Clojure in Windows?

I know it is possible to use CounterClockwise inside Eclipse, but I have been trying to get Leiningen to work so that I could use ClojureScript.

I downloaded leiningen using git clone. It then says run the script. I have tried lein self-install from inside PowerShell and inside the git bash environment.

In each I get an error about failing to download leiningen (which I thought I had with the git clone? hmm). It is interesting because one reads instructions that include things that don't make sense to Windows.

For example, inside Powershell, Windows doesn't understand export HTTP_CLIENT. It was only inside the git bash that I got a message that it is possible my HTTP client's certificate store does not have the correct certificate authority.

It then suggests this command, which runs ok, export HTTP_CLIENT="curl --insecure -f -L -o" but it doesn't fix the problem.

like image 966
Bruce Whealton Avatar asked Apr 12 '13 01:04

Bruce Whealton


People also ask

Does Clojure work on Windows?

An early release version of clj on Windows is available at clj on Windows. Please provide feedback on Ask Clojure or Clojurians slack in #clj-on-windows.


1 Answers

The most recommended method AFAIK is to download the script lein.bat and putting it on the PATH environment variable. I've tested this method on several systems (XP, Windows 7). There is no need to build leiningen from a git checkout yourself. If you have a Windows with Powershell installed lein self-install should download the core .jar file inside a directory .lein in your user directory. Else, make sure you install either wget.exe or curl.exe and put it on the PATH.

like image 85
Michiel Borkent Avatar answered Oct 22 '22 02:10

Michiel Borkent