Now that RVM is installed and working at the command line, you can
move forward with installing Ruby on the server.
1. Check to see which, if any, version of Ruby are installed by typing the following and pressing Return:
Most likely, no Ruby installations will show up yet.
2. If you do see some Ruby installation(s), you can check the default version currently in use by typing the following and pressing Return:
3. To install a specified version of Ruby, type the following command and press Return (change the version number if you would like something other than Ruby 2.2.4):
The installation will begin. It may take a while (mine took between 5-10 minutes).
4. Once RVM installs the version of Ruby you specified, check the default version of Ruby again by entering:
The console should respond with:
1. Check to see which, if any, version of Ruby are installed by typing the following and pressing Return:
# rvm list known
Most likely, no Ruby installations will show up yet.
2. If you do see some Ruby installation(s), you can check the default version currently in use by typing the following and pressing Return:
# ruby -v
3. To install a specified version of Ruby, type the following command and press Return (change the version number if you would like something other than Ruby 2.2.4):
# rvm install 2.2.4
The installation will begin. It may take a while (mine took between 5-10 minutes).
4. Once RVM installs the version of Ruby you specified, check the default version of Ruby again by entering:
# ruby -v
The console should respond with:
ruby 2.2.4p230 (2015-12-16 revision 53155) [x86_64-linux]
or something similar depending on which version you installed.
5. If the default version is not the version you just installed, and you would like to use the newly installed version, enter:
# rvm use 2.2.4
6. If the new version is not the default and you would like to make it the default, enter:
# rvm use 2.2.4 --default
7. Update your Ruby gems
# gem update
Congrats! You successfully installed Ruby and updated the Ruby gems. You can use the commands above to install new versions in the future, switch between versions, and change the default version of Ruby.
Previous post: Installing RVM to manage and install Ruby
Next post: Installing Bundler
No comments:
Post a Comment