Hi I am a new user of clojure ,I am not being able to use lein

244 views
Skip to first unread message

Bis

unread,
Jan 26, 2015, 4:48:07 AM1/26/15
to clo...@googlegroups.com
I am trying from some time but cant install lein.

Tried with the MSI installer and it finishes properly but no repl is created neither lein
tried with lein.bat ,getting errors everytime ,
"Exception calling Downloadfile with two arguement.the remote server returned an error 403 forbidden.(set http client to "wget" and tried also ,btw lein.bat is taken from the official site so not sure if the official version of the bat file is trying to get some unstable release or not )
tried with chocolatey but chocolatey tries to install JDK 7 and its failing ,although I have JDK8 in my system 
Please some one help to debug ,I am getting frustrated 

Denis Fuenzalida

unread,
Jan 26, 2015, 7:27:14 PM1/26/15
to clo...@googlegroups.com
Hi Bis,

I just tried Leiningen on a Windows 7 machine and what was simpler for me was to:

* Install JDK 8
* Save lein.bat to a location where lein could be run from the command line (eg. C:\WINDOWS).
* On a cmd.exe console run "lein self-install" to download lein's library. Didn't have to install curl or wget because lein.bat used PowerShell, which is bundled in Windows 7
* Leininigen was working fine afterwards, I could run "lein new app foobar" to create a project and "lein repl", etc. from the cmd console.

I created an album in Imgur with some screenshots so you can follow: http://imgur.com/a/UFqK3

Best regards,

Denis

Niels van Klaveren

unread,
Jan 27, 2015, 3:58:37 AM1/27/15
to clo...@googlegroups.com
There are some problems with the lein MSI and Chocolaty installs, because of wget/curl certificate handling on Windows. If you use lein.bat without wget or curl (you can remove wget or curl exes from the lein.bat directory), lein will default to Powershell for downloading which works as intended.

Regards,

Niels

Mark Hinshaw

unread,
Jan 27, 2015, 12:17:21 PM1/27/15
to clo...@googlegroups.com
Did you install with this http://leiningen-win-installer.djpowell.net/ ?

This is what I used.  I did have to make sure that the batch file was added to my PATH.  I don't believe the installer does that, but I could be wrong (it's been a while).
The bat file is located in C:/User/<you>/.lein/bin
Also make sure that lein command is recognized after adding it.  If not, check and make sure your PATH string is not too long.  Windows limits the length of your PATH string (which is one of its many pain points regarding cmd tools).
Then like Denis mentioned, run "lein self-install".

Hope this helps
Reply all
Reply to author
Forward
0 new messages