ruby - 无法在 OSX 10.13.6 中安装 Ruby 1.9.3
问题描述
我试过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 1.9.3 is no longer supported. You can't install it on 10.13.
To run older versions of Ruby you need either a pre-built version or an older OS. You can run 10.9+ in a virtual machine if you need to for this purpose.
推荐阅读
- php - PHP preg_replace 适用于所有类型的年份格式(YYYY、YYYY-YYYY、YYYY - YYYY)
- api - 亚马逊商城网络服务创建入库货件 NOT_ELIGIBLE_FC_FOR_ITEM,有什么问题?
- javascript - 以后端期望的特定格式重构 JS 数组
- c# - UWP MediaPlayerElement 流超时
- grails - 以编程方式编辑 resources.groovy 文件
- jquery - 选择该选项时仅更改一个选项的颜色
- php - 函数 Hook add_post_meta ACF Post 对象
- c++ - vsperfcmd.exe 计算代码覆盖率不准确
- android - 如何授予android仪器测试权限?
- c++ - 从 C++ 中的文本文件中读取