You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

MacOS Ventura 13.0下升级Rubygems时TCP连接失败如何解决?

解决MacOS Ventura 13.0下gem update --system连接localhost:8808失败的问题

这个错误是因为你的RubyGems源被配置指向了本地的localhost:8808,但该地址对应的服务并未运行,导致连接被拒绝。按以下步骤修复:

  • 查看当前RubyGems源配置:

    gem sources
    

    你会看到列表中包含http://localhost:8808。

  • 移除错误的本地源:

    sudo gem sources --remove http://localhost:8808
    
  • 添加官方RubyGems源:

    gem sources --add https://rubygems.org/
    
  • 再次确认源配置,确保只有官方源存在:

    gem sources
    
  • 重新执行升级命令:

    sudo gem update --system
    

如果之前是手动配置过本地gem服务器,只需重启对应的服务后再执行升级命令即可,无需切换源。

内容的提问来源于stack exchange,提问作者Backo

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.29 17:12:35