Skip to content

Instantly share code, notes, and snippets.

@rbramwell
Forked from chiraggude/Install Ruby and RubyGems
Created January 12, 2016 03:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rbramwell/fda5a5010a14691186c6 to your computer and use it in GitHub Desktop.
Save rbramwell/fda5a5010a14691186c6 to your computer and use it in GitHub Desktop.
Install Ruby 2.1.1 and RubyGems 1.8.25 on CentOS 6.5
# Install Ruby
wget http://ftp.ruby-lang.org/pub/ruby/2.1/ruby-2.1.1.tar.gz
tar xvzf ruby-2.1.1.tar.gz
cd ruby-2.1.1
./configure --prefix=/usr
make
make install
# remove "ruby-2.1.1" folder in /root
# Install RubyGems
wget http://production.cf.rubygems.org/rubygems/rubygems-1.8.25.tgz
tar xvzf rubygems-1.8.25.tgz
cd rubygems-1.8.25
ruby setup.rb config
ruby setup.rb setup
ruby setup.rb install
# remove "rubygems-1.8.25" folder in /root
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment