Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I install Leiningen self-install from behind a firewall?

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
like image 851
yazz.com Avatar asked Mar 23 '23 12:03

yazz.com


2 Answers

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)
like image 154
hawkeye Avatar answered Mar 25 '23 04:03

hawkeye


This should help:

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

You should work on your googling skills ;)

like image 27
Martin Lechner Avatar answered Mar 25 '23 03:03

Martin Lechner