Created
February 13, 2014 09:19
-
-
Save thapakazi/8972157 to your computer and use it in GitHub Desktop.
Update ruby version using rvm
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
#!/bin/bash | |
#source:: | |
# http://stackoverflow.com/a/4574388/2636474 | |
#First of all, update your RVM installation by running | |
rvm get stable | |
#then to make sure you're running the new RVM version, you'll then need to run | |
rvm reload #(or just open a new terminal). | |
#Once that's done, you can ask RVM to list the ruby versions available to install by running | |
rvm list known. | |
#In the output you should now see: | |
# MRI Rubies | |
#... | |
#[ruby-]1.9.2[-p320] | |
#... | |
#The square brackets around the patch level indicate that this is currently RVM's default patch level for ruby 1.9.2. | |
#Finally, to install the new ruby version, just run rvm install 1.9.2 - and wait for it to compile! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment