You only need to update and install the required libraries. From the terminal type:
sudo apt-get update sudo apt-get upgrade sudo apt-get install ruby-dev ruby-sqlite3 ruby-sinatra ri1.9