apt-get -y install libyaml-0-2 RUBY_VERSION=1.9.3-p392 cd /tmp wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-$RUBY_VERSION.tar.gz tar xvzf ruby-$RUBY_VERSION.tar.gz cd ruby-$RUBY_VERSION ./configure --prefix=/opt/ruby make make install cd .. rm -rf ruby-$RUBY_VERSION rm ruby-$RUBY_VERSION.tar.gz RUBYGEMS_VERSION=2.0.3 wget http://production.cf.rubygems.org/rubygems/rubygems-$RUBYGEMS_VERSION.tgz tar xzf rubygems-$RUBYGEMS_VERSION.tgz cd rubygems-$RUBYGEMS_VERSION /opt/ruby/bin/ruby setup.rb cd .. rm -rf rubygems-$RUBYGEMS_VERSION rm rubygems-$RUBYGEMS_VERSION.tgz echo 'PATH=$PATH:/opt/ruby/bin/' > /etc/profile.d/vagrantruby.sh