How to install ruby with rvm in Ubuntu/Debian

Install curl

To install rvm you are going to need curl utility.

sudo apt-get install curl

Install RVM

RVM is the Ruby Version manager. To install rvm, use this command

curl -L https://get.rvm.io | bash -s stable

After you install rvm, you will see that you need to source rvm.

source ~/.rvm/scripts/rvm

Now you should install rvm dependencies, in order work rvm properly

rvm requirements

Install Ruby

Get the latest version of ruby from their releases and install it with rvm and get it in use

rvm install ruby-2.2-head
rvm use ruby-2.2-head



%d bloggers like this: