How to fix RVM openssl error in ubuntu 22.04

by Juan Vásquez, 15 Jun 2022
daily, ubuntu

Recently, I installed Ubuntu 22.04 because I wanted to be on the latest version.

I installed rvm.io without issues, then I just wanted to download the ruby binary as usual.

rvm install 2.6.9

and oh, surprise! ran in the following error

How to fix RVM openssl error in ubuntu 22.04

at the beginning I didn’t understand the error, I thought needed to install some rvm requirements, but didn’t work.

to solve it, need to downgrade the openssl version

rvm pkg install openssl

then

rvm install ruby-2.6.9 --with-openssl-dir=$HOME/.rvm/usr

problably you will have errors in another gems, though

Resouces