簡體   English   中英

無法在OSX 10.13.6中安裝Ruby 1.9.3

[英]cannot install Ruby 1.9.3 in OSX 10.13.6

我嘗試了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。 您不能在10.13上安裝它。

要運行舊版本的Ruby,您需要預構建的版本或舊的OS。 如果需要,您可以在虛擬機中運行10.9+。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM