本文主要是介绍安装Jekyll Gem一直报Unable to download data from https://rubygems.org/的解决方案,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
完整的错误信息如下:
ERROR: Could not find a valid gem 'rails' (>= 0), here is why:Unable to download data from https://rubygems.org/ - Errno::ETIMEDOUT: Connection timed out - connect(2) for "s3.amazonaws.com" port 443 (https://api.rubygems.org/latest_specs.4.8.gz)
后台在Google上找到解决方案:
sudo gem sources -r https://rubygems.org
sudo gem sources -a http://rubygems.org
貌似意思是将https替换成http,再试了一下,果然可以了,但是安装完后别忘了把它设回来:
sudo gem sources -r http://rubygems.org
sudo gem sources -a https://rubygems.org
http://stackoverflow.com/a/19179835/1227911
这篇关于安装Jekyll Gem一直报Unable to download data from https://rubygems.org/的解决方案的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!