首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >安装Leiningen 2.6.0 (zip文件)

安装Leiningen 2.6.0 (zip文件)
EN

Stack Overflow用户
提问于 2016-02-07 01:43:37
回答 2查看 549关注 0票数 3

最近,我尝试使用lein升级和lein自安装来升级我在Windows XP (sp3)机器上安装的leiningen。不幸的是,这两次尝试都没有成功,因为人们可以清楚地看到以下内容:

代码语言:javascript
复制
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,并将其添加到我的路径中?任何帮助都将不胜感激。

谢谢。

EN

回答 2

Stack Overflow用户

发布于 2016-02-07 02:24:46

我在Linux上用的是lein upgrade

http://leiningen.org/链接到Windows installer - http://leiningen-win-installer.djpowell.net/也许可以工作?

票数 0
EN

Stack Overflow用户

发布于 2016-02-07 03:35:12

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

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

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

听起来是个更好的主意!

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/35244270

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档