Post

How to fix RVM openssl error in ubuntu 22.04

How to fix RVM openssl error in ubuntu 22.04

Recently, I installed Ubuntu 22.04 to stay on the latest version.

I installed rvm.io without issues, then proceeded to install Ruby as usual:

1
rvm install 2.6.9

To my surprise, I encountered the following error:

<%= page.data.title %>

At first I didn’t understand the error. I thought I needed to install some rvm requirements, but that didn’t work.

To solve it, downgrade the openssl version:

1
rvm pkg install openssl

Then:

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

You may encounter errors in other gems as well.

Resources

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