Why are you uninstalling the old version of ruby?
rvm install 2.4.2 // version of ruby u need insatll rvm use 2.4.2 --default // install the ruby version that you want to use by default
Using rvm, you can install several versions of ruby on the system
Please follow these steps: install ruby using rvm
sudo apt-get install libgdbm-dev libncurses5-dev automake libtool bison libffi-dev gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 curl -sSL https://get.rvm.io | bash -s stable source ~/.rvm/scripts/rvm rvm install 2.4.2 rvm use 2.4.2 --default ruby -v
Installation step will change for another version of Ubuntu
For more information
https://gorails.com/setup/ubuntu/14.04
Nataraja B Nov 04 '17 at 7:46 on 2017-11-04 07:46
source share