尝试用RVM升级Ruby
https://blog.csdn.net/yxys01/article/details/103191480
如果碰到下面问题
Error: readline: undefined method `undent' for #<String:0x00007fd7d955c130>
先运行下面命令
$ rvm autolibs read-only
再安装:
$ rvm install ruby-2.6.5
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.15/x86_64/ruby-2.6.5.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for osx.
Missing required packages: coreutils readline zlib openssl@1.1
Somehow it happened there is no executable 'openssl',
run 'brew doctor' and make sure latest 'openssl@1.1' is installed properly.
Requirements installation successful.
查看版本:
$ ruby -v
ruby 2.6.5p114 (2019-10-01 revision 67812) [x86_64-darwin19]
安装成功。