本文为作者原创,转载请标明出处。原作者:Tony_老七
clojure使用lein作为包管理及编译工具,所以在开始你的clojure之旅的开始,需要安装一下leiningen(注意读音)
lein的项目维护在github:https://github.com/technomancy/leiningen,可以按照安装方案进行,不赘述,以下是安装过程中碰到的问题
安装环境:
OS:
[dcli@nfzm ~]$ head -n 1 /etc/issue
CentOS release 5.8 (Final)
CentOS release 5.8 (Final)
一、无法下载安装包
下载lein的脚本后,执行lein,或者lein install,它会去下载leiningen-xxx-standalone.jar(xxxx为版本,我的是2.5.0)
报错如下:
报错如下:
Failed to download https://github.com/technomancy/leiningen/releases/download/2.5.0/leiningen-2.5.0-standalone.jar (exit code 7)
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. It's also possible that you're behind a
firewall and haven't set HTTP_PROXY and HTTPS_PROXY.
搜了一下网上的解决办法
https://github.com/technomancy/leiningen/issues/1634
解决方法:
先 export HTTP_CLIENT="wget --no-check-certificate -O"
https://github.com/technomancy/leiningen/issues/1634
解决方法:
先 export HTTP_CLIENT="wget --no-check-certificate -O"
然后再此执行,下载成功
二、无法启动repl
二、无法启动repl