Skip to content

Instantly share code, notes, and snippets.

@saxenap
Last active August 29, 2015 14:19
Show Gist options
  • Save saxenap/90122a9bfb7ae6928870 to your computer and use it in GitHub Desktop.
Save saxenap/90122a9bfb7ae6928870 to your computer and use it in GitHub Desktop.
Install Ruby and RubyGems
#!/bin/bash
#
# To run:
# rm -rf install-ruby && wget -O install-ruby https://gist.githubusercontent.com/saxenap/90122a9bfb7ae6928870/raw && chmod 777 install-ruby && ./install-ruby
sudo yum -y update
sudo yum -y install ruby22-devel
sudo yum -y install rubygems22
cd /etc/alternatives
ln -sf /usr/bin/ruby2.2 ruby
ln -sf /usr/bin/gem2.2 gem
echo "Ruby and RubyGems Installed."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment