rvm 管理Ruby版本
Dec 20, 2020 — Softwares
ruby 写的大部分是一些工具,比如 cocoapods、fastlane、fir-cli 等,rvm 可以安装比系统 ruby 更新的版本。
使用rvm (opens in a new window)来安装指定版本的 ruby
首先确保已经安装下面两个库:
curlgpg2
然后使用运行命令安装:
\curl -sSL https://get.rvm.io | bash -s stable如果想要升级rvm到新的稳定版本,可以使用命令:
rvm get stable安装指定版本的 ruby:
rvm install 2.6.5切换 ruby 版本:
rvm use 2.6.5在~/.gemrc配置文件里面加入下面一句话:
gem: --no-documentgem migrate 2.1.1 2.4.1---:backtrace: false:bulk_threshold: 1000:sources:- https://gems.ruby-china.com- https://rubygems.org:update_sources: true:verbose: true:concurrent_downloads: 8gem: --no-document