Ruby 现在 Ruby China 的 RubyGems 镜像不能用呢?

cxbird · 2023年02月03日 · 最后由 cxbird 回复于 2023年02月03日 · 519 次阅读

当前 gem sources --add https://gems.ruby-china.com/ --remove https://rubygems.org/

执行 gem install gosu

提示如下:

ERROR: SSL verification error at depth 1: certificate has expired (10)

ERROR: Certificate /O=Digital Signature Trust Co./CN=DST Root CA X3 expired at 2021-09-30T14:01:15Z

ERROR: SSL verification error at depth 1: certificate has expired (10)

ERROR: Certificate /O=Digital Signature Trust Co./CN=DST Root CA X3 expired at 2021-09-30T14:01:15Z

ERROR: SSL verification error at depth 3: certificate has expired (10)

ERROR: Certificate /O=Digital Signature Trust Co./CN=DST Root CA X3 expired at 2021-09-30T14:01:15Z

ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /Library/Ruby/Gems/2.6.0 directory.

证书过期了,请问这个 gems.ruby-china.com 没有维护了吗?

Ruby China 源用的是 Let's Encrypt 证书,老的 Ruby 内置的证书也许验证不了。看楼主的信息用的是 Ruby 2.6 官方已经不维护了。

Rei 回复

是需要升级我的 ruby 版本吗?

cxbird 回复

是的

Rei 回复

谢谢

需要 登录 后方可回复, 如果你还没有账号请 注册新账号