Forked from the guide for M1. But on Linux, since Ruby 2.5 is already a legacy build.
I installed readline and openssl with standard brew install.
brew install readline
HOMEBREW_NO_INSTALL_FROM_API=1 brew install [email protected]
brew install gcc@13
