Open your terminal and run
```lang-none
curl -sSL
[To see links please register here]
| bash -s stable
```
For the `rvm` command to work, you need to run:
source ~/.rvm/scripts/rvm
Now, run `rvm list known`
This shows the list of versions of the Ruby interpreter.
Now, run `rvm install ruby@latest` to get the latest Ruby version.
If you type `ruby -v` in the terminal, you should see `ruby X.X.X`.
If it still shows you `ruby 2.0.`, run `rvm use ruby-X.X.X --default`.
**Prerequisites for Windows 10:**
- C compiler. You can use
[To see links please register here]
- `make` command available otherwise it will complain that "bash: make: command not found". You can install it by running `mingw-get install msys-make`
- Add "C:\MinGW\msys\1.0\bin" and "C:\MinGW\bin" to your path environment variable