2015-07-03 162 views
1

我試圖在leiningen website上按照步驟安裝leiningen。首先我試圖將它安裝在代理後面,但它沒有工作,然後我使用沒有代理的網絡,它仍然給我同樣的錯誤。在ubuntu上Leiningen安裝失敗14.02

[email protected]:/bin$ lein run 
Downloading Leiningen to /home/usman/.lein/self-installs/leiningen-2.5.1-standalone.zip now... 
% Total % Received % Xferd Average Speed Time Time  Time Current 
          Dload Upload Total Spent Left Speed 
0  0 0  0 0  0  0  0 --:--:-- --:--:-- --:--:--  0curl: (77) error setting certificate verify locations: 
CAfile: /etc/pki/tls/certs/ca-bundle.crt 
CApath: none 
Failed to download  
https://github.com/technomancy/leiningen/releases/download/2.5.1/leiningen-2.5.1-standalone.zip (exit code 77) 
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. 

我甚至改變.jar擴展它仍然沒有工作雷音腳本爲.zip。任何人都可以幫助clojure?

+0

我猜想,那裏的錯誤信息包含了所有的事實。如果你期望這只是一個捲曲問題,你的M2設置工作正常(或者只是更多相同的問題在前面),然後通過其他方式下載該錯誤消息中的文件,並將其移至'〜/。 lein/self-installs/leiningen-2.5.1-standalone.jar' – cfrick

+1

您遇到的問題似乎與** Clojure **沒有關係。嘗試使用'curl'與'lein'腳本中使用的方式相同,這樣您就可以解決連接問題。 –

+0

for linux它的一個zip文件,我沒有下載文件,並將其放在給定的路徑問題是,當我第一次創建一個新的項目,它需要從github下載一些文件,並再次給出相同的錯誤 –

回答

0

試試這個:

sudo mkdir -p /etc/pki/tls/certs 

然後:

sudo ln -s /etc/ssl/certs/ca-certificates.crt /etc/pki/tls/certs/ca-bundle.crt 

它做curl尋找該位置的證書。