sudo apt-get install ruby #find an folder and: git clone https://github.com/rubygems/rubygems.git cd rubygem ruby setup.rb