Install Ruby 2.6- CentOS 7.6

Ruby language is open source, it is simple and focuses on productivity while at the same time has an elegant syntax that is easy to read and understand.

We’ll be installing the latest version released in April 2019, version 2.6.

We’ll begin with a fresh CentOS 7.6 minimal installation.

Start off by first installing the “Development Tools” group

Just to cover our bases, install the epel repo

Now for the dependencies

Note: there are other dependencies but they’ve been covered when we installed the “Development Tools” group.

Next, we need to install RVMRVM lets you install and manage multiple ruby environments. Install by issuing the following

To set up the environment

Install any dependencies not covered by the steps above

To list the available versions of Ruby we can install, issue the following at the shell

At the time of writing, Ruby 2.6 is the latest version

Install Ruby version 2.6

If you want this version to be the default version, then do the following:

That’s it you’re done.

Last Updated: May 2, 2019 @ 11:24 pm