My recommendation is to install rbenv using MacPorts. Then you can either install ruby-build either using MacPorts or as a plugin to rbenv, and then install the versions of Ruby you want locally (outside of MacPorts), like so:
$ rbenv install 3.0.3 $ rbenv install 3.1.0 If you want to dive deeper, also install the rbenv-gemset plugin to have control over project-specific gems. — > On Jan 2, 2022, at 12:17 PM, Joshua Root <[email protected]> wrote: > >> It appears that the ruby31 port is missing something, as I can install >> ruby30, switch to it with sudo port select --set ruby ruby30, then install >> gems no problem. > I just had a look and ruby31 is indeed doing something wrong. Here's the > ticket I filed: <https://trac.macports.org/ticket/64338> > > - Josh >
