【问题标题】:cannot install Ruby 1.9.3 in OSX 10.13.6无法在 OSX 10.13.6 中安装 Ruby 1.9.3
【发布时间】:2019-06-24 01:00:08
【问题描述】:

我尝试了rvm install 1.9.3,但出现以下错误:

+requirements_osx_brew_update_system:8> typeset 'ret=1'
+requirements_osx_brew_update_system:9> rvm_error $'\nXcode version older than 4.6.2 installed, download and install newer version from:\n\n    http://connect.apple.com\n\nAfter installation open Xcode, go to Downloads and install Command Line Tools.\n'
+rvm_error:2> rvm_pretty_print stderr
+rvm_pretty_print:2> case auto (0|no)
+rvm_pretty_print:2> case auto (1|auto)
+rvm_pretty_print:7> case xterm-256color (dumb|unknown)
+rvm_pretty_print:10> case stderr (stdout)
+rvm_pretty_print:10> case stderr (stderr)
+rvm_pretty_print:12> [[ -t 2 ]]
+rvm_pretty_print:12> return 1
+rvm_error:4> printf %b $'\nXcode version older than 4.6.2 installed, download and install newer version from:\n\n    http://connect.apple.com\n\nAfter installation open Xcode, go to Downloads and install Command Line Tools.\n\n'

Xcode version older than 4.6.2 installed, download and install newer version from:

    http://connect.apple.com

After installation open Xcode, go to Downloads and install Command Line Tools.

+requirements_osx_brew_update_system:16> return 1

我的 xcode 版本是 10.1 版,所以我认为这不是原因。 我的猜测是我当前的 xcode 对于 ruby​​ 1.9.3 来说太新了。

有什么办法吗?

【问题讨论】:

  • 你找到解决办法了吗?

标签: ruby xcode rvm


【解决方案1】:

不再支持 Ruby 1.9.3。您无法在 10.13 上安装它。

要运行旧版本的 Ruby,您需要预构建版本或旧操作系统。如果需要,您可以在虚拟机中运行 10.9+。

【讨论】:

  • 你能给我这个的来源吗?
  • @DavidAngulo 从 App Store 获取 10.9 磁盘映像并使用 VirtualBox 或 VMWare Fusion。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-01-03
相关资源
最近更新 更多