Installing Ruby on Amazon Linux 2

Running into a problem installing Ruby on your Amazon Linux 2 machine?

I was able to successfully install Ruby and also rvm by doing the following:

sudo yum install gcc

gpg2 --keyserver hkp:// --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB

source ~/.rvm/scripts/rvm

rvm get head

rvm list known

# Install from one of the Ruby versions from the list.
rvm install 3.0.2

ruby --version


Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: