Posts

Ruby < 3.1 installs failing on Ubuntu 22.04 with an openssl error

Montag, 03. April 2023, 11:07 Uhr | roberto@vasquez-angel.de |

Seems like ubuntu recently updated openssl to v3. This seems to clash with installing older ruby versions.

Fix it by having rvm use its own openssl version:

#> rvm pkg install openssl
#> rvm reinstall ruby-2.7.8 --with-openssl-dir=$HOME/.rvm/usr

See https://github.com/rvm/rvm/issues/5209 for more details.

Cleanup RVM

Freitag, 24. Juli 2020, 11:25 Uhr | roberto@vasquez-angel.de |

The hard way (remove all gems):

$ rvm all-gemsets do gem cleanup

Remove stale source files and archives and other obsolete stuff:

$ rvm cleanup all

To avoid duplicate gems enable the gem cache:

$ rvm gemset globalcache enable