【问题标题】:Ruby and gems reinstalling after update to OS X 10.9 (Mavericks)更新到 OS X 10.9 (Mavericks) 后重新安装 Ruby 和 gems
【发布时间】:2013-10-30 00:55:45
【问题描述】:

我将我的 OS_X 更新到 10.9,并且 ruby​​ 套接字 I/O 库出现问题(无法连接到端口)。 这是一个非常奇怪的问题,因为所有配置参数都设置正确。 所以我认为可能是OS_X 10.9(或更新的Xcode)兼容性问题。

我为刚刚更新的 Xcode 安装命令行工具。 (没有它就无法安装 ruby​​)。

我已成功重新安装 ruby​​ 1.9.3。但是当我尝试重新安装我的 gem 环境时,我看到一个错误:

ruby-1.9.3-p448 - #installing......................................................................................................... Retrieving rubygems-2.0.13 There is no checksum for 'http://production.cf.rubygems.org/rubygems/rubygems-2.0.13.tgz' or 'rubygems-2.0.13.tgz', it's not possible to validate it. This could be because your RVM install's list of versions is out of date. You may want to update your list of rubies by running 'rvm get stable' and try again. If that does not resolve the issue and you wish to continue with unverified download add '--verify-downloads 1' after the command. There has been an error while trying to fetch rubygems. Halting the installation.

在这种情况下我需要做什么? 我的宝石组的“验证”是什么意思? 为什么我的宝石过期了?

请帮我理解一下。

【问题讨论】:

    标签: ruby xcode rubygems installation osx-mavericks


    【解决方案1】:

    我在终端“rvm get stable”中运行以获得稳定的 rvm。成功完成,酷。 并尝试重新安装 ruby​​ 1.9.3 第二次没有错误

    这里有一个警告:

    Warning: found user selected compiler '/usr/local/opt/apple-gcc42/bin/gcc-4.2', this will suppress RVM auto detection mechanisms.

    现在它为我安装了最新的 ruby​​gems-2.1.10(不是 2.0.13)。

    新错误^_^:

    Error running '__rvm_with ruby-1.9.3-p448 /Users/bmalets/.rvm/scripts/gemsets pristine', please read /Users/bmalets/.rvm/log/1383094697_ruby-1.9.3-p448/gemset.pristine-ruby-1.9.3-p448.log

    我浏览我的 rails3/ruby1.9.3 项目并运行它。乍一看,它工作正常。

    所以,看来更新成功了))))))

    P.S 我相信更新到新版本的 OS_X 不会像更新到 iOS 7 那样可怕。日历和笔记应用程序中的新 GUI 就像一团糟。我现在对苹果很失望:'(。

    【讨论】:

      猜你喜欢
      • 2023-03-15
      • 2013-11-01
      • 1970-01-01
      • 1970-01-01
      • 2014-03-05
      • 2013-11-15
      • 2013-11-11
      • 2013-11-17
      • 1970-01-01
      相关资源
      最近更新 更多