Inability to download standalone Leiningen jar file

I just can't install leiningen on Debian linux:

> lein
Downloading Leiningen to /home/debianaut/.lein/self-installs/leiningen-2.4.3-standalone.jar now...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   355  100   355    0     0    240      0  0:00:01  0:00:01 --:--:--   375
100 14.2M  100 14.2M    0     0  51565      0  0:04:48  0:04:48 --:--:-- 41059
Failed to download https://github.com/technomancy/leiningen/releases/download/2.4.3/leiningen-2.4.3-standalone.jar
It possible your HTTP client certificate store does not have the
correct certificate authority needed. This is often caused by an
out-of-date version of libssl. Either upgrade it or set HTTP_CLIENT
to turn off certificate checks:
  export HTTP_CLIENT="wget --no-check-certificate -O" # or
  export HTTP_CLIENT="curl --insecure -f -L -o"
It also possible that you're behind a firewall haven't yet
set HTTP_PROXY and HTTPS_PROXY.

I tried with the HTTP_CLIENT setting, but still the same error. The version I read from the lein script is 2.4.3.

+4
source share
2 answers

I also experienced this error. This is what I did on Ubuntu 15.04, with Leiningen 2.5.2.

  • Save the lein file to a directory ~bin(create it if it does not exist).
  • Change the file permissions leinto make it executable (chmod 755 ~ / bin / lein)
  • Open leinwith a text editor
  • 116 .jar .zip, LEIN_JAR="$LEIN_HOME/self-installs/leiningen-$LEIN_VERSION-standalone.zip"
  • Leiningen 2.5.2 GitHub.
  • zip leiningen-2.5.2-standalone.zip ~/.lein/self-installs ( - , - , Gnome Files, Ctrl+H, )
  • : lein new MyFirstLeinProject

.

+1

All Articles