【问题标题】:Installing Leiningen 2.6.0 (zip file)安装 Leiningen 2.6.0(zip 文件)
【发布时间】:2016-05-16 14:49:45
【问题描述】:

我最近尝试使用 lein upgrade 和 lein self-install 在 Windows XP (sp3) 机器上升级我的 leiningen 安装。不幸的是,这两种尝试都没有成功,如下图所示:

C:\>lein upgrade
The script at C:\lein.bat will be upgraded to the latest stable version.
Do you want to continue (Y/N)?Y
Downloading latest Leiningen batch script...
--2016-02-06 10:36:08--  https://github.com/technomancy/leiningen/raw/stable/bin/lein.bat
Resolving github.com (github.com)... 192.30.252.131
Connecting to github.com (github.com)|192.30.252.131|:443... connected.
ERROR: cannot verify github.com's certificate, issued by 'CN=DigiCert SHA2 Extended Validation Serve
r CA,OU=www.digicert.com,O=DigiCert Inc,C=US':
  Unable to locally verify the issuer's authority.
To connect to github.com insecurely, use `--no-check-certificate'.
Failed to download https://github.com/technomancy/leiningen/raw/stable/bin/lein.bat



C:\>lein self-install
Downloading Leiningen now...
--2016-02-06 10:39:39--  https://github.com/technomancy/leiningen/releases/download/2.6.0/leiningen-
2.6.0-standalone.zip
Resolving github.com (github.com)... 192.30.252.131
Connecting to github.com (github.com)|192.30.252.131|:443... connected.
ERROR: cannot verify github.com's certificate, issued by 'CN=DigiCert SHA2 Extended Validation Serve
r CA,OU=www.digicert.com,O=DigiCert Inc,C=US':
  Unable to locally verify the issuer's authority.
To connect to github.com insecurely, use `--no-check-certificate'.

Failed to download https://github.com/technomancy/leiningen/releases/download/2.6.0/leiningen-2.6.0-
standalone.zip

It is possible that the download failed due to "powershell",
"curl" or "wget"'s inability to retreive GitHub's security certificate.
The suggestions below do not check certificates, so use this only if
you understand the security implications of not doing so.

Curl failed to download the latest Leiningen version.
Try to use "wget" to download Leiningen by setting up
the HTTP_CLIENT environment variable with one of the following
values:

 "  a) set HTTP_CLIENT=curl -f -L -k -o"

NOTE: make sure *not* to add double quotes to set the value of
      HTTP_CLIENT

If neither curl nor wget can download Leiningen, please seek
for help on Leiningen's GitHub project issues page.

使用 --no-check-certificate 选项也未能解决问题。

为了满足我的求知欲,我手动下载了 leiningen-2.6.0-standalone.zip,但我不确定如何继续安装,因此我可以按习惯方式使用 leiningen。我会将文件压缩到一个文件夹中,例如 C:\lein,然后将其添加到我的路径中吗?任何帮助将不胜感激。

谢谢。

【问题讨论】:

    标签: windows clojure leiningen


    【解决方案1】:

    lein upgrade 在 Linux 上为我工作。

    http://leiningen.org/ 链接到 Windows 安装程序 - http://leiningen-win-installer.djpowell.net/ 可能会起作用吗?

    【讨论】:

      【解决方案2】:

      阅读该消息,curl 似乎失败了,您应该再试一次,但这次要确保使用 wget 而不是 curl。您应该按照他们所说的设置一个名为HTTP_CLIENT 的系统环境变量来做到这一点。我承认您将其设置为 curl 有点奇怪,您应该试图禁用它。所以我在这里的解释可能是错误的,但无论如何我都会按照说明去做。

      最好使用控制面板来设置系统环境变量,这样你就可以解决这些空间的问题。然后在命令行中使用set 确保它存在,然后再次运行lein self-install

      只需将文件上压缩到一个文件夹,例如 C:\lein,然后将其添加到我的路径中?

      听起来是个更好的主意!

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2012-11-21
        • 1970-01-01
        • 2014-03-23
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2016-04-13
        • 1970-01-01
        相关资源
        最近更新 更多