我最近尝试使用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,并将其添加到我的路径中?任何帮助将不胜感激。
感谢。
答案 0 :(得分:0)
lein upgrade
在Linux上适合我。
http://leiningen.org/指向Windows安装程序的链接 - http://leiningen-win-installer.djpowell.net/可能会有效吗?
答案 1 :(得分:0)
阅读该邮件似乎curl
失败了,您应该再试一次,但这一次确保将使用wget
代替curl
。您应该通过设置一个名为HTTP_CLIENT
的系统环境变量来实现这一点。我承认你将它设置为curl
有点奇怪,你应该试图禁用它。所以我在这里的解释可能是错误的,但无论如何我都会遵循指示。
最好使用控制面板来设置系统环境变量,这样就可以解决这些空间的问题。然后从命令行使用set
以确保它在那之前再次运行lein self-install
。
只需将文件上传到文件夹,例如C:\ lein,然后将其添加到我的路径中?
听起来像是一个更好的主意!