Post

How to fix RVM openssl error in ubuntu 22.04

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.

1
rvm install 2.6.9

and oh, surprise! ran in the following error

<%= page.data.title %>

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

1
rvm pkg install openssl

then

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

problably you will have errors in another gems, though

Resouces

This post is licensed under CC BY 4.0 by the author.