I saw an article that Ubuntu 2022.10 had been released, which spurred me to finally upgrade my Dell laptop from 2018.4 to 2022.4 Everything went great!… until I went to write some code.
With the upgrade, rvm needed to be reinstalled. With that, I went to the rvm website, saw there is now an ubuntu repository, and installed without an issue. I then ran rvm install "ruby-2.5.3", which failed during compile:
ossl.c:63:1: note: in expansion of macro ‘OSSL_IMPL_ARY2SK’
63 | OSSL_IMPL_ARY2SK(x509, X509, cX509Cert, DupX509CertPtr)
| ^~~~~~~~~~~~~~~~
ossl.c: In function ‘ossl_clear_error’:
ossl.c:311:9: error: ‘ERR_get_error_line_data’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
Try tweaking my versions of ruby required… but I needed to then get to Ruby 3.1 and Rails 5.3 only supports up to Ruby 2.7 so no luck there.
Notice rvm has patchsets for Ruby 2.5.1 that mention openssl, so try downgrading, but I received the same error.
Finally, at around midnight I finally found an article on AskUbuntu about OpenSSL and the following answer:
After a few tweaks (I also had to load the dev package) I was able to install OpenSSL 1.1.1: