Clojure 无法下载Leiningen独立jar文件

Clojure 无法下载Leiningen独立jar文件,clojure,leiningen,Clojure,Leiningen,我无法在Debian linux上安装leiningen: > 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

我无法在Debian linux上安装leiningen:

> 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.

我尝试设置HTTP_客户端,但仍然出现相同的错误。我从lein脚本中读取的版本是
2.4.3

我在Mac OS X 10.8.5(Mountain Lion)上使用leiningen 2.1.3时遇到了同样的问题。那个脚本试图下载

最后,我回到leiningen.org,从网站上获取了当前的lein脚本


它工作得很好。下载的资源是:

我也遇到了这个错误。这就是我在Ubuntu 15.04和Leiningen 2.5.2中所做的

  • 将文件保存到
    ~bin
    目录中(如果文件不存在,则创建它)
  • 更改
    lein
    文件的权限以使其可执行(chmod 755~/bin/lein)
  • 用文本编辑器打开
    lein
  • 在第116行,将
    .jar
    更改为
    .zip
    ,这样它应该是
    LEIN_jar=“$LEIN_HOME/self installs/leiningen-$LEIN_VERSION-standalone.zip”
  • 从下载Leiningen 2.5.2
  • 将zip文件
    leiningen-2.5.2-standalone.zip
    放入
    ~/.lein/self installs
    (不要解压缩-如果不存在目录,则创建目录-这是一个隐藏目录,在Gnome文件中,点击
    Ctrl+H
    查看它)
  • 启动您的第一个项目:
    lein new MyFirstLeinProject

  • 瞧。

    你从哪里得到lein脚本的?我从第页的说明中得到了链接:as:=>你是否尝试过像错误消息所说的那样升级libssl?我做了
    dist升级
    但是运气不好,我目前在:
    Debian GNU/Linux 7.6(wheezy)
    你有什么版本的curl和wget?谢谢你的详细说明,可能您需要在ghithub上使用lein脚本:)