| Start |
|---|
| 1. Install and manage versions of Ruby with rbenv The easiest way to install and manage various versions of Ruby with rbenv is to use the ruby-build plugin. First clone the rbenv repository to your home directory: Then clone the ruby-build plugin: Ensure that rbenv is initialized in your shell session, by adding this to your (This essentially first checks if You will probably have to restart your shell session - or simply open a new Terminal window. Note: If you're running on OSX, you will also need to install the Mac OS Command Line Tools with: You can also install Then follow the instructions given by: Install a new version of Ruby: List the versions available with: Choose a version and install it with: Mark the installed version as the global version - i.e. the one that your system uses by default: Check what your global version is with: You can specify a local project version with: Footnotes: |
| Uninstalling a Ruby There are two ways to uninstall a particular version of Ruby. The easiest is to simply remove the directory from Alternatively, you can use the uninstall command, which does exactly the same thing: If this version happens to be in use somewhere, you'll need to update your global or local version. To revert to the version that's first in your path (usually the default provided by your system) use: |
Read Article
https://develop.horje.com/learn/1434/reference