ruby-build

Build and install multiple Ruby versions from source

brewmacoslinux
Try with needOr install directly
Source

About

Install various Ruby versions and implementations

Commands

ruby-build

Examples

List all available Ruby versions that can be installed$ ruby-build --definitions
Install a specific Ruby version to a custom directory$ ruby-build 3.2.0 ~/.rubies/ruby-3.2.0
Install the latest Ruby version with verbose output$ ruby-build -v 3.3.0 /usr/local/opt/ruby-3.3.0