Skip to content

Instantly share code, notes, and snippets.

@jcsrb
Forked from chiraggude/Install Ruby and RubyGems
Last active January 12, 2018 07:17
Show Gist options
  • Save jcsrb/0de1049723e60028b8526bb20c27c8a7 to your computer and use it in GitHub Desktop.
Save jcsrb/0de1049723e60028b8526bb20c27c8a7 to your computer and use it in GitHub Desktop.
Install Ruby 2.2.1 and RubyGems 2.4.8 on CentOS 6.5
# Install Ruby
wget http://ftp.ruby-lang.org/pub/ruby/2.2/ruby-2.2.1.tar.gz
tar xvzf ruby-2.2.1.tar.gz
cd ruby-2.2.1
./configure --prefix=/usr
make
make install
# remove "ruby-2.1.1" folder in /root
# Install RubyGems
wget https://rubygems.org/rubygems/rubygems-2.4.8.tgz
tar xvzf rubygems-2.4.8.tgz
cd rubygems-2.4.8
ruby setup.rb config
ruby setup.rb setup
ruby setup.rb install
# remove "rubygems-2.4.8" folder in /root
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment