Ruby < 3.1 installs failing on Ubuntu 22.04 with an openssl error
Montag, 03. April 2023, 11:07 Uhr | roberto@vasquez-angel.de |Seems like ubuntu recently updated openssl to v3. This seems to clash with installing older ruby versions.
Fix it by having rvm use its own openssl version:
#> rvm pkg install openssl
#> rvm reinstall ruby-2.7.8 --with-openssl-dir=$HOME/.rvm/usr
See https://github.com/rvm/rvm/issues/5209 for more details.