Install command:
brew install ruby-build

Install various Ruby versions and implementations

License: MIT

Formula JSON API: /api/formula/ruby-build.json

Formula code: ruby-build.rb on GitHub

Bottle (binary package) installation support provided.

Current versions:

stable 20230608
head ⚡️ HEAD

Depends on:

autoconf 2.71 Automatic configure script builder
libyaml 0.2.5 YAML Parser
pkg-config 0.29.2 Manage compile and link flags for libraries
readline 8.2.1 Library for command-line editing
ruby-build installs a non-Homebrew OpenSSL for each Ruby version installed and these are never upgraded.

To link Rubies to Homebrew's OpenSSL 1.1 (which is upgraded) add the following
to your shell profile e.g. ~/.profile or ~/.zshrc:
    export RUBY_CONFIGURE_OPTS="--with-openssl-dir=$(brew --prefix openssl@1.1)"

Note: this may interfere with building old versions of Ruby (e.g <2.4) that use
OpenSSL <1.1.


Installs (30 days)
ruby-build 45,083
Installs on Request (30 days)
ruby-build 15,042
Build Errors (30 days)
ruby-build 0

Analytics (macOS):

Installs (90 days)
ruby-build 2,761
ruby-build --HEAD 9
Installs on Request (90 days)
ruby-build 1,153
ruby-build --HEAD 9
Installs (365 days)
ruby-build 1,480,271
ruby-build --HEAD 3,898
Installs on Request (365 days)
ruby-build 1,054,629
ruby-build --HEAD 3,894

Analytics (Linux):

Installs (90 days)
ruby-build 16
Installs on Request (90 days)
ruby-build 7
Installs (365 days)
ruby-build 14,869
ruby-build --HEAD 32
Installs on Request (365 days)
ruby-build 6,389
ruby-build --HEAD 32
Fork me on GitHub