How to install gems on macOS for different versions of Ruby

This page summarizes the projects mentioned and recommended in the original post on /r/ruby

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • RVM

    Ruby enVironment Manager (RVM)

  • Another option is to use a Ruby version manager that provides support for gemsets. I've been using RVM for years. RVM works along side bundler, so if you establish a gemset, bundler will install all your gems to that gemset.

  • rbenv

    Manage your app's Ruby environment

  • Use rbenv to manage your Ruby versions. This will also manage your gem commands. So if I do:

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • ruby-build

    A tool to download, compile, and install Ruby on Unix-like systems.

  • Will install bundler for 3.1.3. You'll also want ruby-build for building multiple ruby versions.

  • asdf

    Extendable version manager with support for Ruby, Node.js, Elixir, Erlang & more

  • I like asdf

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts