好吧,我跑了gem update --sytem
,现在我似乎已经被软管了。
我正在尝试运行一个本地的Jekyll博客(检查我的东西,我把它推到github)。
jekyll serve
给了我:
c:/Ruby22-x64/lib/ruby/2.2.0/net/http.rb:923:in `connect': (Bundler::Dsl::DSLError)
[!] There was an error parsing `Gemfile`: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certific
ate verify failed. Bundler cannot continue.
# from C:/Users/j6l/Documents/GitHubPages/johnl4.github.io/Gemfile:5
# -------------------------------------------
# gem 'github-pages', versions['github-pages']
> gem 'jekyll-feed'
# source 'https://rubygems.org'
# -------------------------------------------
from c:/Ruby22-x64/lib/ruby/2.2.0/net/http.rb:923:in `block in connect'
from c:/Ruby22-x64/lib/ruby/2.2.0/timeout.rb:74:in `timeout'
from c:/Ruby22-x64/lib/ruby/2.2.0/net/http.rb:923:in `connect'
from c:/Ruby22-x64/lib/ruby/2.2.0/net/http.rb:863:in `do_start'
还有一些堆栈跟踪条目,但我认为这已经足够了。
bundle update
做同样的想法。
我不是 Ruby专家(也不是Jekyll专家),我只是想把我的博客带到那里。
我看过Luis Lavena关于旧版RubyGems这个问题的帖子,他没有提到2.5.0,这是品牌spankin'new(只是我的运气,嗯?)。无论如何,我的ssl certs目录中的cert .pem文件与人们说下载的内容完全匹配,所以我不确定是不是问题,除非我在查找错误的目录或其他内容。
PS C:\Ruby22-x64\lib\ruby\site_ruby\2.2.0\rubygems\ssl_certs> diff -ref $(get-content .\AddTrustExternalCARoot-2048.pem) -dif $(get-content C:\Users\j6l\Downloads\AddTrustExternalCARoot-2048.pem)
PS C:\Ruby22-x64\lib\ruby\site_ruby\2.2.0\rubygems\ssl_certs>
PS C:\Users\j6l\Documents\GitHubPages\johnl4.github.io> gem update --system
Latest version currently installed. Aborting.
PS C:\Users\j6l\Documents\GitHubPages\johnl4.github.io> ruby --version
ruby 2.2.3p173 (2015-08-18 revision 51636) [x64-mingw32]
PS C:\Users\j6l\Documents\GitHubPages\johnl4.github.io> gem --version
2.5.0
PS C:\Users\j6l\Documents\GitHubPages\johnl4.github.io> bundle --version
Bundler version 1.10.6
现在是什么?
(谢谢。:))
答案 0 :(得分:0)
可能是您正在获取重定向,或者您确实与rubygems.org存在某种SSL不兼容。当我看到这两个宝石时,我看到了:
curl -I https://rubygems.org/gems/jekyll-feed
HTTP/1.1 200 OK
Server: nginx
Date: Wed, 04 Nov 2015 19:23:08 GMT
Content-Type: text/html; charset=utf-8
Connection: keep-alive
Status: 200 OK
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
ETag: W/"1585dca404914b49565650d7832c1c3f"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _rubygems_session=UmJMc1NUeUoreGlUMHVxSWI1QVVJNXhVa1k2QXhqN1lEL09CTENFd2J4SUQ1RU5rdDZQU0h4eXhUVDcyeWoyUkdmQmpYRDFxY2tiUXI0YzFwMjBZRjNEWlNVaEZNTXJjcGJ2ekFkL0FRU1JNSkZxRnFVYlJJRUNxSlRsWUxRbW5rL3hIOE1zWWM0dUJqNDRKTTA2MFlnPT0tLUg1ODFvRFhRaDRqcXZjNjM4ZGg3S3c9PQ%3D%3D--61d9898027580b62e2c8b6f9a93bb719d5839dfc; path=/; secure; HttpOnly
X-Request-Id: fedceeef-2539-4942-838e-b8584e399109
X-Runtime: 0.036895
X-UA-Compatible: IE=Edge,chrome=1
curl -I https://rubygems.org/gems/github-pages
HTTP/1.1 200 OK
Server: nginx
Date: Wed, 04 Nov 2015 19:23:39 GMT
Content-Type: text/html; charset=utf-8
Connection: keep-alive
Status: 200 OK
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
ETag: W/"f3e79d7752d3eac43aee4f6786cc01ec"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _rubygems_session=V0dhK0U1dWVyTDhZenVyUjUyUFlXbnc4clkzN2FCQk1wdlZHMkNWQWNPd1Z0REhWSmN0RmdwcDRtL0ZaQ2dEUGkwZUQrZEZBdHQ2VjY0UXN4Yk1idzlSQVRHSDgrc0xQZk5JLzJFV3N3c1BxcXdOOENXY2l1QWJsRUVzckdUTUw5NDQ0TU5JYWlRbmZEWkJPeEtzYXpRPT0tLXhhS1N2ZkJoYzZ1MTRZaTF1Nm45aFE9PQ%3D%3D--e912ea64a1b5c2ecf95524dddb704191b176f905; path=/; secure; HttpOnly
X-Request-Id: 9b8f3227-63cf-4c6b-9d63-aeb1b019a945
X-Runtime: 0.042007
X-UA-Compatible: IE=Edge,chrome=1
您在使用要尝试更新的计算机上的命令行中使用curl看到了什么?
答案 1 :(得分:0)