Manage Ruby versions with rbenv

0

update rbenv
$ brew upgrade rbenv ruby-build

# list all available versions:
$ rbenv install -l

# install a Ruby version:
$ rbenv install 2.7.1
set default/global version of ruby
~/.rbenv % ls
shims       version     versions
~/.rbenv % more version
2.7.1
specify ruby version in your code folder
~/code/lukeko % more .ruby-version 
2.7.1

https://github.com/rbenv/rbenv

  • 0 posts
  • 0 subtopics
  • 4 months ago by vince