about 8 years ago
Installing RVM and creating Gemsets can be difficult at times. Frown not because in this tutorial we will learn the basics of installing RVM and in part 2 of the tutorial we will be creating Gemsets.
RVM helps to manage multiple versions of Ruby on non Windows Environment.
Coming back to the tutorial we need to install RVM
Fire up the terminal or console and key in the following command
\curl -sSL https://get.rvm.io | bash
Note - There is a backslash before curl. This prevents misconfiguration if you have aliased it with configuration in your ~/.curlrc file.
Be sure to follow any subsequent instructions as guided by the installation process.
If successfully installed execute the following command to check if RVM is working or not
It shows system specific notes.
In RVM jargon Rubies are essentially Ruby versions
Now to install Ruby 1.9.3
rvm install 1.9.3
This command will install Ruby 1.9.3. To switch to this ruby version use
To check the ruby version
This will show you the current ruby in use which will be off course the one we just installed i.e. Ruby 1.9.3
To set this as default
rvm --default 1.9.3
Now let's install another version of Ruby
rvm install 1.8.7
This will install Ruby version 1.8.7. You are now up and running with two Rubies!
To switch between Ruby version simply use
To switch to Ruby version 1.8.7
To switch to Ruby version 1.9.3
In the next tutorial we will learn how to create gemsets to enable seamless integration of various gems for same version of ruby and rails.
Starting with Chrome version 45, NPAPI is no longer supported for Google Chrome. For more information, see Chrome and NPAPI (blog.chromium.org).
Firefox and Microsoft Internet Explorer are recommended browsers for websites using java applets.
Chrome Version Support
Are you sure, you want to delete this comment?
Terms of Service
| © copyright 2021 FindNerd.com. All rights reserved.
Sign up using