Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Failing to download Leiningen standalone jar file

I am simply unable to 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's possible your HTTP client's 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's also possible that you're behind a firewall haven't yet
set HTTP_PROXY and HTTPS_PROXY.

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

like image 245
sakhunzai Avatar asked Oct 31 '22 19:10

sakhunzai


1 Answers

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

  1. Save the lein file into the ~bin directory (create it if it doesn't exist).
  2. Change the permissions of the lein file to make it executable (chmod 755 ~/bin/lein)
  3. Open lein with a text editor
  4. On line 116, change .jar to .zip, so that it should be LEIN_JAR="$LEIN_HOME/self-installs/leiningen-$LEIN_VERSION-standalone.zip"
  5. Download Leiningen 2.5.2 from GitHub.
  6. Put the zip file leiningen-2.5.2-standalone.zip into ~/.lein/self-installs (do not unzip - create the directory if it doesn't exist - this is a hidden directory, in Gnome Files, hit Ctrl+H to see it)
  7. To initiate your first project: lein new MyFirstLeinProject

Voilà.

like image 172
essicolo Avatar answered Nov 15 '22 05:11

essicolo