Install Ruby on Rails on CentOS / Ubuntu / Fedora From Source

Ruby is a programming language, it was designed and developed by Yukihiro “Matz” Matsumoto in mid 1995. This article will help you to install Ruby on Rails on CentOS 7 / Ubuntu 14.10, 14.04 LTS / RHEL 7 / Fedora 22 / Fedora 21 from source.

This is the least preferable choice to install Ruby, from source code. If you are facing any difficulty in setting up ruby from source, consider to use any one method mentioned below.

Prerequisites:

Before installing ruby, you must install the dependent packages. As said earlier, we will be using rbenv, it provides an easy way to install and manage the versions of Ruby, and it is simpler than RVM.