2016-10-11 58 views
4

我不知道這個錯誤在嘗試運行時意味着什麼gem update --system;無法從rubygems下載數據

{9:29}[2.2.3]~ ➭ gem update --system 
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) 
SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://api.rubygems.org/specs.4.8.gz) 

嘗試時我也會遇到類似的錯誤;

{9:30}[2.2.3]~ ➭ gem install tunnelss 
ERROR: Could not find a valid gem 'tunnelss' (>= 0), here is why: 
Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://api.rubygems.org/specs.4.8.gz) 

僅供參考 - 我可以訪問瀏覽器https://api.rubygems.org/specs.4.8.gz,它會開始下載所以這不是問題。

不知道該做什麼。任何人都可以建議嗎?

回答

6

這是一個已知問題,請參閱https://gist.github.com/luislavena/f064211759ee0f806c88和/或https://gist.github.com/fnichol/867550來解決它。

昨天當我在Windows上安裝Ruby時,我偶然發現了相同的問題。所以,親自,這https://superdevresources.com/ssl-error-ruby-gems-windows/爲我工作。另一個指南提到了一個不存在的URL到cacert.pem

+2

試試我的解決方案在這裏http://stackoverflow.com/a/40299098/80357 –

+0

@WilliamNotowidagdo嘗試你的解決方案,導致與原始問題嘗試相同的SSL錯誤解決... – knocte

+0

實際上似乎是一個警告,而不是一個錯誤 – knocte