dan.sbs

Setup Ruby on Fedora with RVM

By: Dan McCarthy - 7/24/2024

Setup Ruby on Fedora with RVM

During my time setting up Ruby on Fedora Linux, I've experience a number of issues, which has lead me to create this guide documenting the Ruby setup process using Ruby enVironment Manager (RVM).

  1. To begin you need to allow the rvm.io GPG keys
gpg2 --keyserver keyserver.ubuntu.com --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
  1. From here you will want to run the following script to install RVM
\curl -sSL https://get.rvm.io | bash
  • Note: If you don't use bash (zsh users :/), you should still run the install script with bash. It will not impact the function of RVM.
  1. Next, run the following commands to install, and set the default ruby version
rvm get stable
rvm --default use ruby
  • When installing Ruby you might run into an SSL error. In my case running "rvm get head" was able to resolved this issue.
  • Note: RVM expects that your running your shell with the --login flag. - You should be able to add this after the path to your shell in whatever terminal you use (EX: "/usr/bin/bash --login")
    • This is the same for other shells like zsh.

At this point the latest version of Ruby should be installed and ready to use. I've found that this method of setup works alot better than the ~900 different Ruby packages offered through the Fedora repos.