You will need curl
. If you don't have it, install it via apt-get.
Now use curl
to download and execute the latest RVM shell script:
curl -L get.rvm.io | bash -s stable
source /etc/profile.d/rvm.sh
Ask RVM to list the required packages for your system:
rvm requirements
Install the required packages:
apt-get install -y
... [the required package list goes here]
Download and compile the latest Ruby:
rvm install 1.9.3
Set this newly installed Ruby as the default Ruby:
rvm use 1.9.3 --default