# Install Ruby from packages apt-get -y install ruby ruby-dev libruby1.8 ri # Install Rubygems from source rg_ver=1.6.2 curl -o /tmp/rubygems-${rg_ver}.zip \ "http://production.cf.rubygems.org/rubygems/rubygems-${rg_ver}.zip" (cd /tmp && unzip rubygems-${rg_ver}.zip && \ cd rubygems-${rg_ver} && ruby setup.rb --no-format-executable) rm -rf /tmp/rubygems-${rg_ver} /tmp/rubygems-${rg_ver}.zip