Installing Ruby via RVM

11th September, 2023

Currently (11-09-2023) it looks like there is an issue with rvm installing Ruby where paths for Homebrew installed packages are incorrectly recognised, this can be resolved by explicitly adding them to the install command:

rvm reinstall 3.2.0 --with-openssl-dir=$(brew --prefix openssl) --with-readline-dir=$(brew --prefix readline) --with-libyaml-dir=$(brew --prefix libyaml)

I've only tried his with 3.2 but it should also work for other Ruby versions