Last active
August 29, 2015 14:19
-
-
Save saxenap/90122a9bfb7ae6928870 to your computer and use it in GitHub Desktop.
Install Ruby and RubyGems
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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