Skip to content

Instantly share code, notes, and snippets.

@geopet
Last active August 29, 2015 14:07
Show Gist options
  • Save geopet/b2a5b99e83c39019b84b to your computer and use it in GitHub Desktop.
Save geopet/b2a5b99e83c39019b84b to your computer and use it in GitHub Desktop.
Update Source Ruby on a Vagrant Instance
#!/usr/bin/env bash
cd
sudo rm -rf /usr/local/bin/ruby
wget http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.3.tar.gz
tar -xzvf ruby-2.1.3.tar.gz
cd ruby-2.1.3
./configure
make
sudo make install
rm ~/.gemrc
echo "gem: --no-ri --no-rdoc" > ~/.gemrc
gem update system
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment