Question

Is there a full download I can use which downloads leiningen and all related stuff in one go? I am not able to change the proxy settings on my local network, and this is the error I get:

"DownloadFile" with "2" argument(s): "The remote server returned an error: (407) Proxy Authentication Required."

Update

You need to download the Leiningen standalone jar and then point LEIN_JAR to it:

 set LEIN_JAR=full path to leiningen standalone jar
Was it helpful?

Solution

For me - setting the proxies didn't work (and downloading the jar was unsatisfactory)

I got:

  1. the wget binary, and
  2. the wget dependencies

and put them on my PATH - ie h:\util contains:

wget.exe
libssl32.dll
libintl3.dll
libiconv2.dll
libeay32.dll

(where H:\util was already on my path. )

and then got a new terminal cmd.exe - and then lein self-install worked.

Assumptions:

  • Downloading the jar was unsatisfactory because the point of lein is to be a dependency manager (like maven). You need to keep downloading stuff. If you manually download the first jar - then when you add some more jar dependencies to your project you'll have to manually download those as well. Might as well chuck out lein and go back to doing things on the Java classpath.
  • In my view - in a windows environment proxy settings should be automatically detected. Lein can't do this (yet) - but the wget version I downloaded could. So you solve the problem of needing to explicitly specify the proxy. (In addition - manually setting the proxy just didn't work for me)

OTHER TIPS

This should help:

https://github.com/technomancy/leiningen/wiki/HTTP-Proxies

You should work on your googling skills ;)

I want to post this as a comment to @hawkeye, but I dont have enough reputation. This work for me only when I set environment variable.

set HTTP_CLIENT=wget --no-check-certificate -O
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top