The easiest way to install Ruby on your system is to use one of these Ruby version managers: RVM or rbenv.
But sometimes, you just need to install Ruby from source, for example for your production environment where there isn’t version manager installed. In fact, I was tasked with upgrading Ruby on our production server last week. And it was not as straight forward as I was expecting.