sudo apt-get install curl
curl -L get.rvm.io | bash -s stable
source ~/.rvm/scripts/rvm
Add this line to .bashrc
sudo apt-get update
rvm requirements
## Install dependencies listed for Ruby
rvm install 1.9.3
rvm use 1.9.3 --default
rvm rubygems current
gem install rails
Could not find a JavaScript runtime.
sudo apt-get install nodejs
...
sudo apt-get install rmagic
sudo apt-get install libmagickwand-dev