How to install Ruby 2.X and Rails 5.X using RVM
The best way to install Ruby on Rails is using RVM in Linux. Advantages of RVM, 1. You can shift between multiple versions of Ruby easily. 2. You don't have to worry about install Ruby dependencies. RVM install will take care of installing them. Some of the ruby dependencies are : gawk, autoconf, automake, bison, libffi-dev, libgdbm-dev, libncurses5-dev, libsqlite3-dev, libtool, libyaml-dev, pkg-config, sqlite3, zlib1g-dev, libgmp-dev, libreadline6-dev, libssl-dev 3. Easily upgrade Ruby version and try out a latest version to make sure your project works with the latest Ruby. If something breaks, changing the version is easy. 4. Delete unwanted Ruby version anytime :) Installation steps. Step 1. Install RVM Source : https://rvm.io/rvm/install $ gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB \curl -sSL https://get.rvm.io | bash -s stable $ source /etc/profile $ source ~/.rvm/scri...