$ apt-get --purge remove ruby-rvm
$ sudo rm -rf /usr/share/ruby-rvm /etc/rvmrc /etc/profile.d/rvm.sh
Make sure you have curl
command installed:
$ apt-get install curl
Install stable RVM version by piping installation script to bash:
$ curl -L get.rvm.io | bash -s stable
Open your shell config and go to "Title and Command" and check the option
Run command as a login shell
See what are requirements for compiling MRI:
$ rvm requirements
Most likely it is the following list of packages:
$ apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion
Now, install ruby via RVM:
$ rvm install 1.9.3
Make it a default for all new shells:
$ rvm --default use 1.9.3