《具》rbenv:Groom your app’s Ruby environment on macOS

《具》

rbenv:Groom your app’s Ruby environment


install rbenv

brew install rbenv
rbenv init
rbenv rehash

check rbenv

curl -fsSL https://github.com/rbenv/rbenv-installer/raw/master/bin/rbenv-doctor | bash 


use rbenv

# list all available versions:
$ rbenv install -l

# install a Ruby version:
$ rbenv install 2.7.1

use ruby

gem install bundler
gem env home

Refrences

Comments

Popular posts from this blog

英语口语

Ruby语言经典代码讲座:单态类(Singleton Class)