Install openssl whenever the system openssl version is not supported by a Ruby by znz · Pull Request #1974 · rbenv/ruby-build
Ubuntu 22.04 includes openssl 3.0.2, and libssl-dev is also 3.0.2 only. But Ruby < 3.1 does not support openssl 3. So I want to install openssl 1 automatically. I just tested rbenv install 3.0.4...