sudo apt-get install curlNext up, install RVM
curl -L https://get.rvm.io | bash -s stable --rubyWhich all went pretty well. At the end of the install, simply running
source ~/.rvm/scripts/rvmin my open terminal session brought everything up to snuff. Now I'm going to install a few dependencies
rvm requirementsto check what you need on your system. Mine needed the following command to get up to speed.
sudo 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 \ subversionAnd annoyingly I had to
rvm reinstall 1.9.3because it was already installed but without doing the reinstall all sorts of nasty errors would occur when trying to install gems later on. Next a quick verification:
which ruby >> /home/rubyflewtoo/.rvm/bin/ruby ruby -v >>ruby 1.9.3p194I didn't have a system ruby installed given my version of Linux Mint was fresh off the boat, but if you did and you want to default to ruby 1.9.3 (which you should) then you could run
rvm use 1.9.3 --default