快速解决: 编辑Gemfile,将第一行"source 'http://rubygems.org'"里的https替换为http即可。
在本地虚拟机ubuntu 14.10 server下,用rbenv新安装了ruby2.2.3,以及 rails4.2.4。创建了一个新项目,在 执行"bundle install" 时发生如下错误:
尝试用wget直接下载(失败 ):
$ wget https://rubygems.org/gems/jbuilder-2.3.1.gem
--2015-09-28 18:20:47-- https://rubygems.org/gems/jbuilder-2.3.1.gem
Resolving rubygems.org (rubygems.org)... 54.186.104.15
Connecting to rubygems.org (rubygems.org)|54.186.104.15|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://rubygems.global.ssl.fastly.net/gems/j