This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
First Get the latest version of ruby through RVM | |
TO KNOW THE LATEST VERSION OF RUBY | |
$ rvm list known | |
CURRENTLY THE LATEST VERSION IS RUBY-2.5 | |
$ rvm install ruby 2.5 | |
TO KNOW WHICH SUB-VERSION OF RUBY-2.5 IS LOADED RUN | |
$ rvm list |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RVM, the ruby version manager, is a fairly flexible tool that supports a number of workflows. The rvm utility can be used to generate both a .ruby-version file and a .ruby-gemset file for a given project. | |
``` | |
$ rvm --ruby-version use 2.5.3@my_project | |
``` | |
This will generate a .ruby-version file in your current project directory that points RVM to the 2.5.3 version of Ruby. It will also create a .ruby-gemset file that RVM will use for managing this project’s gemset. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# create and use the new RVM gemset | |
$ rvm use --create ruby-2.5.0@awesome_rails_project | |
# install rails into the blank gemset | |
$ gem install rails | |
# generate the new rails project | |
$ rails new awesome_rails_project | |
# go into the new project directory and create an .rvmrc for the gemset |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Steps for installation of ruby with RVM | |
Command 1 > gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB | |
Command 2 > \curl -sSL https://get.rvm.io | bash -s stable | |
Please run below command which is very important after successfull run of Command 2 | |
After install of rvm, On last 2 lines there will be line in quotation which start with 'source .....'. please copy that text and run in terminal. | |
Check Rvm installed or not with below command |